Class: Whisper::Parakeet::Token

Inherits:
Object
  • Object
show all
Defined in:
sig/whisper.rbs

Instance Method Summary collapse

Instance Method Details

#deconstruct_keysdeconstructed_keys

Parameters:

  • (Array[:id | :duration_idx | :duration_value | :frame_index | :probability | :log_probability | :start_time | :end_time | :word_start | :text], nil)

Returns:

  • (deconstructed_keys)


936
# File 'sig/whisper.rbs', line 936

def deconstruct_keys: (Array[:id | :duration_idx | :duration_value | :frame_index | :probability | :log_probability | :start_time | :end_time | :word_start | :text] | nil) -> deconstructed_keys

#duration_idxInteger

Index into the model's durations array.

Returns:

  • (Integer)


902
# File 'sig/whisper.rbs', line 902

def duration_idx: () -> Integer

#duration_valueInteger

Actual duration value.

Returns:

  • (Integer)


906
# File 'sig/whisper.rbs', line 906

def duration_value: () -> Integer

#end_timeInteger

End time of the token in milliseconds.

Returns:

  • (Integer)


926
# File 'sig/whisper.rbs', line 926

def end_time: () -> Integer

#frame_indexInteger

Frame index of the token.

Returns:

  • (Integer)


910
# File 'sig/whisper.rbs', line 910

def frame_index: () -> Integer

#idInteger

Token ID.

Returns:

  • (Integer)


898
# File 'sig/whisper.rbs', line 898

def id: () -> Integer

#log_probabilityFloat

Log probability of the token.

Returns:

  • (Float)


918
# File 'sig/whisper.rbs', line 918

def log_probability: () -> Float

#probabilityFloat

Probability of the token.

Returns:

  • (Float)


914
# File 'sig/whisper.rbs', line 914

def probability: () -> Float

#start_timeInteger

Start time of the token in milliseconds.

Returns:

  • (Integer)


922
# File 'sig/whisper.rbs', line 922

def start_time: () -> Integer

#textString

Get the token text of the token.

Returns:

  • (String)


934
# File 'sig/whisper.rbs', line 934

def text: () -> String

#word_start?true, false

Whether this token is the start of a word.

Returns:

  • (true, false)


930
# File 'sig/whisper.rbs', line 930

def word_start?: () -> (true | false)