ChunkerConfig#
- class scikitplot.corpus.ChunkerConfig[source]#
Abstract base configuration for all chunker implementations.
Concrete subclasses (e.g.
SentenceChunkerConfig) must inherit from this class. No fields are defined here; this exists purely as a type-safe base forisinstancechecks and registry typing.Notes
All concrete configs must remain
frozen=Truedataclasses. Mutable config objects create non-deterministic pipeline behaviour.Enum fields (R3-2). A field whose default is an
Enummember accepts that member or its value (backend="regex") and holds the member after construction; any other value raisesValueErrorlisting the valid values. It used to construct and then fail insidechunk()('str' object has no attribute 'value'). A subclass that defines__post_init__must callsuper().__post_init__().