Hierarchical evaluation improvements - Presidio Evaluator v-next#172
Merged
Conversation
Updated dependencies for ner group and added version constraints for gliner and onnxruntime.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…presidio-research into omri/enhanced_mapping
Removed deprecated check for entity_mapping in model.
- Add BIO/BIOES/BILOU/BILUO prefix/suffix stripping (_strip_bio) - Auto-map O (outside token) to None tier - Fix log messages to use ASCII -> instead of Unicode -> - Fix UNRESOLVED log message (remove stale 'prompting user' suffix) - Remove stale CANONICAL_DEPTH import from __init__.py - Expand ALL_CANONICAL_ENTITIES to include intermediate hierarchy nodes (e.g. PERSON) - Remove stale duplicate canonicalize() stub from hierarchy.py - Update tests to use XYZZY_UNKNOWN (MY_UNKNOWN was auto-resolved via MY=Malaysia country prefix) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… implementation US-002: map() method - already implemented, tests passing US-003: resolve_interactively() - already implemented, tests passing US-004: Add from_dataset() classmethod (extracts unique entity types from InputSample spans) US-005: render_html() - already implemented, tests passing US-006: Add missing test coverage: - TestBIOStripping (B-PERSON, PERSON-I, BANK_ACCOUNT unchanged, O token) - TestFromDataset (happy path dict, pending path instance, kwargs passthrough) - TestRenderHtml (no raise without IPython, callable before resolution) - Fix ASCII log arrows in map() method (-> not Unicode ->) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…Mapper API) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…Interface Co-authored-by: omri374 <3776619+omri374@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsoft/presidio-research/sessions/eb50120c-0b18-41ca-9db2-55c071434576
…phase CanonicalMapper
…apability on annotation branch
…tion_only, resolve_interactively)
omri374
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v-next of Presidio-Evaluator (parent branch for all changes)
See changelog for more information