DepSentence
Defined in: graph.ts:17
A parsed sentence plus its graph indices and a byte→char offset converter.
Properties
Section titled “Properties”children
Section titled “children”children:
Map<number,DepToken[]>
Defined in: graph.ts:21
children.get(headId) → dependents of that token.
text:
string
Defined in: graph.ts:18
toGlobal
Section titled “toGlobal”toGlobal: (
byteOffset) =>number
Defined in: graph.ts:23
Convert a DOCUMENT-GLOBAL UTF-8 byte offset (nlpgraph 0.3.0) to a char index.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
Returns
Section titled “Returns”number
tokens
Section titled “tokens”tokens:
DepToken[]
Defined in: graph.ts:19