Lfm3Tokenizer class final
Constructors
- Lfm3Tokenizer.load(String modelDir)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addedTokenId(
String content) → int? -
Id of an added token such as
<|im_end|>, or null. -
addedTokenIn(
String text) → String? -
The first added token spelled out in
text, or null. encode turns such spellings into control tokens, so text that must stay plain (a typed question, a replayed answer) is checked with this first. -
decode(
List< int> ids) → String -
encode(
String text) → List< int> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited