Stats#

class scikitplot.cleanprompt.Stats(input_chars, output_chars, detected_spans, resolved_spans, dropped_spans, entries, by_kind)[source]#

Counters describing one redaction pass.

Parameters:
input_charsint

Length of the input text.

output_charsint

Length of the redacted text.

detected_spansint

Spans produced by detectors, before overlap resolution.

resolved_spansint

Spans surviving overlap resolution.

dropped_spansint

Spans discarded by overlap resolution.

entriesint

Distinct values redacted.

by_kinddict of str to int

Distinct values per category.

Parameters:
by_kind: Mapping[str, int][source]#
detected_spans: int[source]#
dropped_spans: int[source]#
entries: int[source]#
input_chars: int[source]#
output_chars: int[source]#
resolved_spans: int[source]#