Class: abstract
NodeParser()
Extends
Extended by
abstract
NodeParser<Options
>(nodes
,options
?):Promise
<BaseNode
<Metadata
>[]>
Type Parameters
• Options extends Record
<string
, unknown
>
Parameters
• options?: Options
Returns
Defined in
packages/core/node-parser/dist/node-parser/index.d.ts:5
Constructors
new NodeParser()
new NodeParser():
NodeParser
Returns
Overrides
TransformComponent
.constructor
Defined in
packages/core/node-parser/dist/node-parser/index.d.ts:8
Properties
id
id:
string
Inherited from
Defined in
packages/core/schema/dist/schema/index.d.ts:171
includeMetadata
includeMetadata:
boolean
Defined in
packages/core/node-parser/dist/node-parser/index.d.ts:6
includePrevNextRel
includePrevNextRel:
boolean
Defined in
packages/core/node-parser/dist/node-parser/index.d.ts:7
Methods
getNodesFromDocuments()
Parameters
• documents: TextNode
<Metadata
>[]
Returns
Defined in
packages/core/node-parser/dist/node-parser/index.d.ts:11
parseNodes()
abstract
protected
parseNodes(documents
,showProgress
?):TextNode
<Metadata
>[]
Parameters
• documents: TextNode
<Metadata
>[]
• showProgress?: boolean
Returns
Defined in
packages/core/node-parser/dist/node-parser/index.d.ts:10
postProcessParsedNodes()
protected
postProcessParsedNodes(nodes
,parentDocMap
):TextNode
<Metadata
>[]
Parameters
• parentDocMap: Map
<string
, TextNode
<Metadata
>>
Returns
Defined in
packages/core/node-parser/dist/node-parser/index.d.ts:9