Replies: 3 comments
-
Hi, you could consider changing the |
Beta Was this translation helpful? Give feedback.
-
Hi, tks. |
Beta Was this translation helpful? Give feedback.
-
Hi, you can change it globally: from presidio_analyzer import AnalyzerEngine, EntityRecognizer
text = "AL47212110090000000235698741" # valid IBAN number
analyzer = AnalyzerEngine()
EntityRecognizer.MAX_SCORE = 0.795
analyzer.analyze(text=text, language="en") Results: Note that this would change the validation score globally for all recognizers. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a case where two pattern recognizers will detect that a given string matches the patern.
Both of them use checksum validation and both return true, so both return 1.0 score (pattern captures 9 numbers, last being check digit, but they can refer to different entities)
The difference is in context words
I would like to descrease confidence based on the results of enhance_using_context results (absence of...)
I dont now how, implementing
invalidate_result(self, pattern_text: str)
in my custom recognizer I could access the results of the context enhancer...I would like to have some clues or ideias. Is this possible? Makes sense?
TY
Beta Was this translation helpful? Give feedback.
All reactions