Class: SentenceWindowNodeParser
A NodeParser generates Nodes from Documents
Implements
Constructors
constructor
• new SentenceWindowNodeParser(init?
): SentenceWindowNodeParser
Parameters
Name | Type |
---|---|
init? | Partial <SentenceWindowNodeParser > |
Returns
Defined in
packages/core/src/nodeParsers/SentenceWindowNodeParser.ts:36
Properties
includeMetadata
• includeMetadata: boolean
= true
Whether to include metadata in the nodes.
Defined in
packages/core/src/nodeParsers/SentenceWindowNodeParser.ts:30
includePrevNextRel
• includePrevNextRel: boolean
= true
Whether to include previous and next relationships in the nodes.
Defined in
packages/core/src/nodeParsers/SentenceWindowNodeParser.ts:34
originalTextMetadataKey
• originalTextMetadataKey: string
= DEFAULT_OG_TEXT_METADATA_KEY
The metadata key to store the original sentence in.
Defined in
packages/core/src/nodeParsers/SentenceWindowNodeParser.ts:26