#2309·presidio

EvalPort: portable interchange for RecognizerResult findings

Author: adhabnr-uxCreated Sep 27, 2026Updated Sep 27, 2026

Hi Presidio team — I maintain EvalPort, an open JSON-Schema spec for portable LLM/NLP evaluation and finding data (TestCase/Grader/Result/ResultSet/GraderResult). Not asking for a PR yet — flagging a proposal first since this would be a new integration surface.

I read presidio_analyzer/recognizer_result.py directly. RecognizerResult (entity_type, start, end, score, analysis_explanation, recognition_metadata) is a per-entity PII finding — each detected span is essentially a graded verdict against a specific detector. Mapped onto EvalPort: the analyzed text is the TestCase.input, each PatternRecognizer/EntityRecognizer is a Grader, and each RecognizerResult from AnalyzerEngine.analyze() becomes a GraderResult (entity_type → grader_id, score → score, analysis_explanation → reason, start/end preserved under metadata for span traceability). A batch of AnalyzerEngine.analyze() calls over a text dataset is the shape of an EvalPort ResultSet.

I'd propose a standalone presidio-openeval-adapter package (to_openeval()/from_openeval(), tested against a real AnalyzerEngine, not a mock) — useful for teams comparing Presidio's PII coverage against another tool's graders on identical inputs, or sharing a labeled PII eval set across tools. Happy to build it and open a PR if that's the preferred path, or keep this as a standalone package outside the repo if you'd rather.

Spec: https://github.com/adhabnr-ux/evalport/blob/main/SPEC.md

— Sahi, independent contributor (not affiliated with the Presidio project)

Source: data-privacy-stack/presidio