Skip to content

Tok

Defined in: document.ts:15

A word token with GLOBAL char offsets into the original text (lexical rules).

optional confidence?: object

Defined in: document.ts:27

optional deprel?: number

optional head?: number

optional upos?: number


end: number

Defined in: document.ts:22


optional features?: Readonly<Record<string, string>>

Defined in: document.ts:26


optional lemma?: string

Defined in: document.ts:25


lower: string

Defined in: document.ts:18

lower-cased text, for matching.


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’, …).