chunkipy.text_chunker.fixed_size.fixed_size_text_chunker
Classes
|
Chunk text into fixed-size slices using the configured size estimator. |
- class chunkipy.text_chunker.fixed_size.fixed_size_text_chunker.FixedSizeTextChunker(chunk_size=None, size_estimator=None, overlap_ratio=0.0)[source]
Bases:
BaseOverlapTextChunkerChunk text into fixed-size slices using the configured size estimator.
Each segment emitted by
size_estimator.segmentis treated as a unit of size1during chunk assembly.- Parameters:
chunk_size (int)
size_estimator (BaseSizeEstimator)
overlap_ratio (float)