Tok
Defined in: document.ts:15
A word token with GLOBAL char offsets into the original text (lexical rules).
Properties
Section titled “Properties”confidence?
Section titled “confidence?”
optionalconfidence?:object
Defined in: document.ts:27
deprel?
Section titled “deprel?”
optionaldeprel?:number
optionalhead?:number
optionalupos?:number
end:
number
Defined in: document.ts:22
features?
Section titled “features?”
optionalfeatures?:Readonly<Record<string,string>>
Defined in: document.ts:26
lemma?
Section titled “lemma?”
optionallemma?:string
Defined in: document.ts:25
lower:
string
Defined in: document.ts:18
lower-cased text, for matching.
sentence
Section titled “sentence”sentence:
number
Defined in: document.ts:24
Index of the sentence this token belongs to.
start:
number
Defined in: document.ts:21
text:
string
Defined in: document.ts:16
upos:
string
Defined in: document.ts:20
Universal POS tag from the parse (‘NOUN’, ‘VERB’, ‘PUNCT’, …).