Sentence Chunker
Chunk the given text using the Sentence Chunker.
Authorizations
Your API Key from the Chonkie Cloud dashboard
Body
Data to pass to the Sentence Chunker.
The input text or list of texts to be chunked.
Tokenizer to use. Can be a string identifier or a tokenizer instance
Maximum number of tokens per chunk
Number of overlapping tokens between chunks
Minimum number of sentences to include in each chunk
Minimum number of characters per sentence
Use approximate token counting for faster processing (deprecated)
Delimiters to split sentences on
Include delimiters in the chunk text. If so, specifies whether to include in the previous or next chunk
prev
, next
Whether to return chunks as text strings or as SentenceChunk objects
texts
, chunks
Response
The actual text content of the chunk.
The starting character index of the chunk within the original input text.
The ending character index (exclusive) of the chunk within the original input text.
The number of tokens in this specific chunk, according to the tokenizer used.
List of sentences contained within this chunk.
Represents a single sentence within a chunk.
Was this page helpful?