Custom and Default Entities Not Fully Anonymizing Text #1560
|
Context Issue "My license plate number is AB123CD and my fiscal code is DNTCRL65S67M126L." Code Overview (see attached code) NLP Engine (Spacy) is correctly configured for Italian Expected Behavior Question |
Replies: 1 comment 1 reply
|
Hi @cristianosticca-pagopa plate_recognizer = PatternRecognizer(patterns=[plate_pattern],
supported_entity="IT_VEHICLE_PLATE",
name="IT_VEHICLE_PLATE",
supported_language="it")I would further suggest to add context words as these could boost the confidence of this being an Italian license plate and not a different entity. |
Hi @cristianosticca-pagopa
Everything is correct except for one small change needed. If you don't specify the language for the new custom recognizer, it would assume it supports English. Here's the fixed definition:
I would further suggest to add context words as these could boost the confidence of this being an Italian license plate and not a different entity.