Lack of support language from predefined recognizers. #1389
Unanswered
xsandiii
asked this question in
Requested features
Replies: 1 comment 1 reply
-
Hi @xsandiii, the support for a yaml based config is not yet released. Are you testing this with the code in github or through the released Docker/pypi packages? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We encountered the issue with detecting CreditCard using CreditCardRecognizer.
In the config file default_recognizers.yaml you clearly defined the supported languages:
supported_languages:
context: [credit, card, visa, mastercard, cc,
amex, discover, jcb, diners, maestro, instapayment]
context: [tarjeta, credito, visa, mastercard, cc,
amex, discover, jcb, diners, maestro, instapayment]
type: predefined
But during tests, the credit card with language ES is not possible to detect with recognizer, it looks like,
the features does not work properly.
The API request with given 'es' language:
{
"text": "tarjeta 4012 8888 8888 1881",
"language": "es"
}
Response:
[
{
"analysis_explanation": null,
"end": 7,
"entity_type": "LOCATION",
"recognition_metadata": {
"recognizer_identifier": "SpacyRecognizer_139939461637360",
"recognizer_name": "SpacyRecognizer"
},
"score": 0.85,
"start": 0
}
]
The API request with given 'en' language:
{
"text": "tarjeta 4012 8888 8888 1881",
"language": "en"
}
Response:
[
{
"analysis_explanation": null,
"end": 27,
"entity_type": "CREDIT_CARD",
"recognition_metadata": {
"recognizer_identifier": "CreditCardRecognizer_139939461637216",
"recognizer_name": "CreditCardRecognizer"
},
"score": 1.0,
"start": 8
},
{
"analysis_explanation": null,
"end": 27,
"entity_type": "DATE_TIME",
"recognition_metadata": {
"recognizer_identifier": "SpacyRecognizer_139939356647376",
"recognizer_name": "SpacyRecognizer"
},
"score": 0.85,
"start": 23
}
]
Please could you explain me, if this is bug?
Beta Was this translation helpful? Give feedback.
All reactions