Skip to content

DepSentence

Defined in: graph.ts:17

A parsed sentence plus its graph indices and a byte→char offset converter.

children: Map<number, DepToken[]>

Defined in: graph.ts:21

children.get(headId) → dependents of that token.


text: string

Defined in: graph.ts:18


toGlobal: (byteOffset) => number

Defined in: graph.ts:23

Convert a DOCUMENT-GLOBAL UTF-8 byte offset (nlpgraph 0.3.0) to a char index.

number

number


tokens: DepToken[]

Defined in: graph.ts:19