Class WhisperTokenData
java.lang.Object
com.sun.jna.Structure
io.github.ggerganov.whispercpp.model.WhisperTokenData
public class WhisperTokenData
extends com.sun.jna.Structure
Structure representing token data.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionintToken ID.floatProbability of the token.floatLog probability of the token.floatProbability of the timestamp token.floatSum of probabilities of all timestamp tokens.longStart time of the token (token-level timestamp data).longEnd time of the token (token-level timestamp data).intForced timestamp token ID.floatVoice length of the token.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
id
public int idToken ID. -
tid
public int tidForced timestamp token ID. -
p
public float pProbability of the token. -
plog
public float plogLog probability of the token. -
pt
public float ptProbability of the timestamp token. -
ptsum
public float ptsumSum of probabilities of all timestamp tokens. -
t0
public long t0Start time of the token (token-level timestamp data). Do not use if you haven't computed token-level timestamps. -
t1
public long t1End time of the token (token-level timestamp data). Do not use if you haven't computed token-level timestamps. -
vlen
public float vlenVoice length of the token.
-
-
Constructor Details
-
WhisperTokenData
public WhisperTokenData()
-
-
Method Details
-
getFieldOrder
- Overrides:
getFieldOrderin classcom.sun.jna.Structure
-