chunking
triplum.steps.chunking ¶
Chunker ¶
Bases: Protocol
Split one source into chunks whose start and text are exact slices of its text.
FixedSize ¶
FixedSize(size: int)
Bases: Chunker, FingerprintedComputationMixin
Slice the text every size characters; the last chunk keeps the remainder.
Chunks do not overlap and concatenate back to the source text. Empty text yields no chunks.
Source code in src/triplum/steps/chunking.py
23 24 25 26 | |