Class: Whisper::Parakeet::Token

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

Instance Method Summary collapse

Instance Method Details

#deconstruct_keys ⇒ deconstructed_keys

Parameters:

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

Returns:

  • (deconstructed_keys)


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

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_idx ⇒ Integer

Index into the model's durations array.

Returns:

  • (Integer)


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

def duration_idx: () -> Integer

#duration_value ⇒ Integer

Actual duration value.

Returns:

  • (Integer)


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

def duration_value: () -> Integer

#end_time ⇒ Integer

End time of the token in milliseconds.

Returns:

  • (Integer)


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

def end_time: () -> Integer

#frame_index ⇒ Integer

Frame index of the token.

Returns:

  • (Integer)


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

def frame_index: () -> Integer

#id ⇒ Integer

Token ID.

Returns:

  • (Integer)


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

def id: () -> Integer

#log_probability ⇒ Float

Log probability of the token.

Returns:

  • (Float)


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

def log_probability: () -> Float

#probability ⇒ Float

Probability of the token.

Returns:

  • (Float)


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

def probability: () -> Float

#start_time ⇒ Integer

Start time of the token in milliseconds.

Returns:

  • (Integer)


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

def start_time: () -> Integer

#text ⇒ String

Get the token text of the token.

Returns:

  • (String)


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

def text: () -> String

#word_start? ⇒ true, false

Whether this token is the start of a word.

Returns:

  • (true, false)


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

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