Skip to main content

Class: abstract NodeParser()

Extends

Extended by

abstract NodeParser<Options>(nodes, options?): Promise<BaseNode<Metadata>[]>

Type Parameters

Options extends Record<string, unknown>

Parameters

nodes: BaseNode<Metadata>[]

options?: Options

Returns

Promise<BaseNode<Metadata>[]>

Defined in

packages/core/node-parser/dist/index.d.ts:5

Constructors

new NodeParser()

new NodeParser(): NodeParser

Returns

NodeParser

Overrides

TransformComponent.constructor

Defined in

packages/core/node-parser/dist/index.d.ts:8

Properties

id

id: string

Inherited from

TransformComponent.id

Defined in

packages/core/schema/dist/index.d.ts:171


includeMetadata

includeMetadata: boolean

Defined in

packages/core/node-parser/dist/index.d.ts:6


includePrevNextRel

includePrevNextRel: boolean

Defined in

packages/core/node-parser/dist/index.d.ts:7

Methods

getNodesFromDocuments()

getNodesFromDocuments(documents): TextNode<Metadata>[]

Parameters

documents: TextNode<Metadata>[]

Returns

TextNode<Metadata>[]

Defined in

packages/core/node-parser/dist/index.d.ts:11


parseNodes()

abstract protected parseNodes(documents, showProgress?): TextNode<Metadata>[]

Parameters

documents: TextNode<Metadata>[]

showProgress?: boolean

Returns

TextNode<Metadata>[]

Defined in

packages/core/node-parser/dist/index.d.ts:10


postProcessParsedNodes()

protected postProcessParsedNodes(nodes, parentDocMap): TextNode<Metadata>[]

Parameters

nodes: TextNode<Metadata>[]

parentDocMap: Map<string, TextNode<Metadata>>

Returns

TextNode<Metadata>[]

Defined in

packages/core/node-parser/dist/index.d.ts:9