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

    Fields
    Modifier and Type
    Field
    Description
    int
    Token ID.
    float
    Probability of the token.
    float
    Log probability of the token.
    float
    Probability of the timestamp token.
    float
    Sum of probabilities of all timestamp tokens.
    long
    Start time of the token (token-level timestamp data).
    long
    End time of the token (token-level timestamp data).
    int
    Forced timestamp token ID.
    float
    Voice 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<String>
     

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public int id
      Token ID.
    • tid

      public int tid
      Forced timestamp token ID.
    • p

      public float p
      Probability of the token.
    • plog

      public float plog
      Log probability of the token.
    • pt

      public float pt
      Probability of the timestamp token.
    • ptsum

      public float ptsum
      Sum of probabilities of all timestamp tokens.
    • t0

      public long t0
      Start time of the token (token-level timestamp data). Do not use if you haven't computed token-level timestamps.
    • t1

      public long t1
      End time of the token (token-level timestamp data). Do not use if you haven't computed token-level timestamps.
    • vlen

      public float vlen
      Voice length of the token.
  • Constructor Details

    • WhisperTokenData

      public WhisperTokenData()
  • Method Details

    • getFieldOrder

      protected List<String> getFieldOrder()
      Overrides:
      getFieldOrder in class com.sun.jna.Structure