AudioLiveTokenPolicy class final

Token suppression differs on final/nonfinal chunks; placeholders are always forbidden. This policy follows the pinned transcribe_live implementation.

Constructors

AudioLiveTokenPolicy(Map<String, int> markers, int vocabSize)
AudioLiveTokenPolicy.fromTokenizer(Lfm3Tokenizer tokenizer, int vocabSize)
factory

Properties

audio → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
markers → Map<String, int>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textEnd → int
no setter
vocabSize → int
final

Methods

closesBlock(int token, {required bool isFinal}) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pick(Float32List logits, {required bool isFinal}) → int
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

names → const List<String>