FirstModulAR 0.1.0
Loading...
Searching...
No Matches
Whisper.WhisperTokenData Class Reference

Usually represent a word, part of the word, punctuation marks or some special tokens like [EOT], [BEG], etc. More...

Public Member Functions

 WhisperTokenData (WhisperNativeTokenData nativeToken, string text, bool timestamps, bool isSpecial)
 

Public Attributes

readonly int Id
 Id of the token in whisper model vocabulary.
 
readonly float Prob
 Probability (confidence) of the token in [0, 1] range.
 
readonly float ProbLog
 Log probability (confidence) of the token.
 
readonly string Text
 Text representation of the token.
 
readonly bool IsSpecial
 True if this token is special token used by whisper, like [EOT], [BEG], etc.
 
readonly WhisperTokenTimestamp Timestamp
 Optional token timestamp information. Null if params WhisperParams.TokenTimestamps is false.
 

Detailed Description

Usually represent a word, part of the word, punctuation marks or some special tokens like [EOT], [BEG], etc.

Constructor & Destructor Documentation

◆ WhisperTokenData()

Whisper.WhisperTokenData.WhisperTokenData ( WhisperNativeTokenData nativeToken,
string text,
bool timestamps,
bool isSpecial )
inline

Member Data Documentation

◆ Id

readonly int Whisper.WhisperTokenData.Id

Id of the token in whisper model vocabulary.

◆ IsSpecial

readonly bool Whisper.WhisperTokenData.IsSpecial

True if this token is special token used by whisper, like [EOT], [BEG], etc.

◆ Prob

readonly float Whisper.WhisperTokenData.Prob

Probability (confidence) of the token in [0, 1] range.

◆ ProbLog

readonly float Whisper.WhisperTokenData.ProbLog

Log probability (confidence) of the token.

◆ Text

readonly string Whisper.WhisperTokenData.Text

Text representation of the token.

◆ Timestamp

readonly WhisperTokenTimestamp Whisper.WhisperTokenData.Timestamp

Optional token timestamp information. Null if params WhisperParams.TokenTimestamps is false.


The documentation for this class was generated from the following file: