(options: SentenceChunkerOptions = {})
| 18 | private readonly minSentencesPerChunk: number |
| 19 | |
| 20 | constructor(options: SentenceChunkerOptions = {}) { |
| 21 | const resolved = resolveChunkerOptions(options) |
| 22 | this.chunkSize = resolved.chunkSize |
| 23 | this.chunkOverlap = resolved.chunkOverlap |
| 24 | this.minSentencesPerChunk = options.minSentencesPerChunk ?? 1 |
| 25 | } |
| 26 | |
| 27 | /** Splits on sentence boundaries while avoiding abbreviations, decimals, and ellipses. */ |
| 28 | private splitSentences(text: string): string[] { |
nothing calls this directly
no test coverage detected