In this article
Detection spans refer to one text version; replacement creates another coordinate system and does not certify complete anonymization.
Analyzer output describes candidate spans
Presidio Analyzer returns entity types, scores and start/end positions through recognizer results. Its engine combines configured recognizers and an NLP engine. The detected span is evidence produced by that configuration, rather than a universal inventory of all sensitive information in a document.
Record the language, recognizer set and model revision used for a dataset pass. Supported entities and recognizers vary, so a familiar entity name does not prove equivalent coverage across every language or source format.
Offsets belong to the analyzed text
Extraction, Unicode transformation or trimming between analysis and replacement can move positions. Passing old spans against modified content can redact the wrong characters while leaving the original target visible. The analyzer and anonymizer should therefore share an explicitly identified text revision.
When results cross programming languages or storage layers, verify the position convention instead of assuming byte offsets and string indices are interchangeable. A proposed fixture containing non-ASCII text can expose a mismatch before a full corpus transformation.
Replacement changes downstream coordinates
Presidio Anonymizer accepts analyzer results and operator configurations, returning transformed text and operator results. A replacement may change length. Old annotation positions cannot simply be reused for later tasks that read the transformed text.
Keep an explicit lineage between input and output records, with operator policy and any span mapping required by downstream consumers. Do not publish the original sensitive values merely to make that lineage convenient. The access boundary for retained originals is a separate design decision.
Detection quality and text utility are different
False negatives can leave material that the policy intended to remove. False positives can destroy useful names, code identifiers or factual relationships. Inspect both error types on representative documents, including the languages and formatting actually present in the collection.
A high recognition score is not proof that all relevant entities were found. Likewise, successful operator execution establishes that configured replacements ran, not that the output satisfies every privacy requirement. This article describes tool behavior, without certifying a new dataset or changing Retrivium’s published data policy.
Version the redacted dataset as a derivative
Associate the output with its input revision, detector configuration, operator configuration and review evidence. If detection rules improve, regenerate affected records through a controlled revision rather than silently changing text under stable dataset identifiers.
Measure downstream annotation alignment after replacement as well as detection quality before it. This preserves a useful distinction between finding candidate spans, transforming them and demonstrating that the resulting dataset remains fit for its intended task.
Primary references
Related explanations: Document provenance; Russian-language retrieval.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.