UDToken class
A single token from a CoNLL-U sentence produced by UDPipe.
Constructors
Properties
- degree → String?
-
Degree of comparison from FEATS: "Pos", "Cmp", "Sup", or null.
final
- deprel → String
-
Universal dependency relation (root, nsubj, obj, …).
final
- form → String
-
Surface form as it appears in the input text.
final
- gender → String?
-
Grammatical gender from FEATS: "Masc", "Fem", "Neut", or null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- head → int
-
id of the syntactic head token; 0 means root.
final
- id → int
-
1-based token index within the sentence.
final
- lemma → String
-
Dictionary lemma.
final
- number → String?
-
Grammatical number from FEATS: "Sing", "Plur", or null.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upos → String
-
Universal POS tag (VERB, NOUN, ADJ, …).
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
Static Methods
-
parseFeats(
String feats) → ({String? degree, String? gender, String? number}) - Parses Gender, Number, and Degree from a FEATS string in one pass, e.g. "Case=Nom|Gender=Masc|Number=Sing|Degree=Pos".