ContextPassage#
- class scikitplot.corpus.ContextPassage(hit, spans)[source]#
The context a compressor kept from one hit.
- Parameters:
- hitPlannedHit
The hit.
- spanstuple of (int, int)
Ordered, non-overlapping character ranges of
hit.doc.text.
- Parameters:
hit (PlannedHit)
Notes
User.
textis the spans’ text joined by newlines, so every character of a passage is a character of its source at a known offset.- hit: PlannedHit[source]#