Skip to content

Hierarchical evaluation improvements - Presidio Evaluator v-next#172

Merged
omri374 merged 148 commits into
masterfrom
hirearchial_evaluation_improvements
Jun 30, 2026
Merged

Hierarchical evaluation improvements - Presidio Evaluator v-next#172
omri374 merged 148 commits into
masterfrom
hirearchial_evaluation_improvements

Conversation

@RonShakutai

@RonShakutai RonShakutai commented May 27, 2026

Copy link
Copy Markdown
Contributor

v-next of Presidio-Evaluator (parent branch for all changes)
See changelog for more information

omri374 and others added 30 commits December 16, 2025 11:39
Updated dependencies for ner group and added version constraints for gliner and onnxruntime.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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>
@RonShakutai RonShakutai requested a review from omri374 May 27, 2026 10:08
@omri374 omri374 requested a review from Copilot May 27, 2026 13:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

@omri374 omri374 changed the title Hierarchical evaluation improvements Hierarchical evaluation improvements - Presidio Evaluator v-next May 27, 2026
@omri374 omri374 merged commit 2e97411 into master Jun 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants