KiwiToken class
A token produced by Kiwi morphological analysis.
Constructors
- KiwiToken({required String form, required String tag, required int start, required int length, required int wordPosition, required int sentPosition, required double score, required double typoCost})
-
Creates a KiwiToken.
const
-
KiwiToken.fromJson(Map<
String, dynamic> json) -
Creates a token from a JSON-compatible map.
factory
Properties
- form → String
-
The surface form in the input text.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The token length (in UTF-16 code units).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → double
-
The token score from Kiwi.
final
- sentPosition → int
-
The sentence index for this token.
final
- start → int
-
The start offset (in UTF-16 code units) in the input string.
final
- tag → String
-
The part-of-speech tag.
final
- typoCost → double
-
The typo normalization penalty for this token.
final
- wordPosition → int
-
The word index for this token.
final
Methods
-
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