Docs: Add YAML and Python example for context-aware recognizers#1710
Docs: Add YAML and Python example for context-aware recognizers#1710omri374 merged 9 commits intomicrosoft:mainfrom
Conversation
|
Hi @maintainers This PR only updates the docs to add YAML + Python examples for context-aware recognizers. Since it’s docs-only and clarifies a common misconfiguration (#1696), a quick review/merge would be very helpful Thanks a lot! |
|
Hi @SharonHart @yuvalyaron maintainers 👋 This PR adds documentation updates with YAML and Python examples for context-aware recognizers. |
|
Hi @tamirkamara and @omri374 I’ve added a small documentation update with YAML and Python examples for context-aware recognizers to help avoid misconfiguration. Thank you! |
|
Hi @MRADULTRIPATHI, thanks for the PR. We have initial documentation for the YAML providers here: https://github.com/microsoft/presidio/blob/main/docs/analyzer/analyzer_engine_provider.md. How about we integrate the context examples there? |
|
Thanks @omri374 for the feedback! Will update the PR accordingly. |
a6b0593 to
badfa34
Compare
|
Hi @omri374, thanks again for the feedback! |
Co-authored-by: Omri Mendels <omri374@users.noreply.github.com>
|
Hi @omri374, |
|
Hi @omri374, |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Thanks @omri374 for the approval! All checks have passed, so this PR should be ready to merge. |
|
Hi @microsoft, |
|
Hi @microsoft, team |

Change Description
This PR updates the analyzer docs to include examples for using context with custom YAML recognizers.
The update clarifies how to define
contextin YAML and how to apply it in Python withLemmaContextAwareEnhancer.This helps avoid confusion like in issue #1696 where context in YAML seemed ignored.
Issue reference
Fixes #1696
Checklist
Example (YAML + Python)
See the added example in
developing_recognizers.mdfor loading a DOB recognizer from YAML and applying context boosting in Python.