ChunkResult#
- class scikitplot.corpus.ChunkResult(chunks, metadata=<factory>)[source]#
Container returned by every
ChunkerProtocolimplementation.- Parameters:
- chunkslist[Chunk]
Ordered list of chunks produced from a single document. May be empty if no content passes filtering.
- metadataMetadataDict
Aggregate metadata for the entire chunking run (e.g.
chunker,backend,total_chunks,doc_id).
- Parameters:
Notes
chunksis a plain list stored by value. Becausefrozen=Trueprevents re-assignment of thechunksattribute, the list itself must not be mutated after construction.