Package ai.vespa.language.chunker
Class SentenceChunker
java.lang.Object
ai.vespa.language.chunker.SentenceChunker
- All Implemented Interfaces:
Chunker
A chunker which splits a text into sentences.
- Author:
- bratseth
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.language.process.Chunker
Chunker.Chunk, Chunker.Context, Chunker.FailingChunker -
Field Summary
Fields inherited from interface com.yahoo.language.process.Chunker
defaultChunkerId, throwsOnUse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchunk(String inputText, Chunker.Context context) Splits a text into multiple chunks.
-
Constructor Details
-
SentenceChunker
public SentenceChunker()
-
-
Method Details
-
chunk
Description copied from interface:ChunkerSplits a text into multiple chunks. The chunks should preferably contain all the content of the original text, and can be overlapping.
-