Class SentenceChunker

java.lang.Object
ai.vespa.language.chunker.SentenceChunker
All Implemented Interfaces:
Chunker

public class SentenceChunker extends Object implements Chunker
A chunker which splits a text into sentences.
Author:
bratseth
  • Constructor Details

    • SentenceChunker

      public SentenceChunker()
  • Method Details

    • chunk

      public List<Chunker.Chunk> chunk(String inputText, Chunker.Context context)
      Description copied from interface: Chunker
      Splits a text into multiple chunks. The chunks should preferably contain all the content of the original text, and can be overlapping.
      Specified by:
      chunk in interface Chunker
      Parameters:
      inputText - the text to split into chunks
      context - the context which may influence a chunker's behavior
      Returns:
      the resulting chunks