Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are accents supported at all? #86

Open
zxul767 opened this issue Aug 15, 2023 · 0 comments
Open

Are accents supported at all? #86

zxul767 opened this issue Aug 15, 2023 · 0 comments

Comments

@zxul767
Copy link

zxul767 commented Aug 15, 2023

The text "Bestias desagradables. No sé por qué acepté apostar" should be classified as Spanish, but it is instead classified as Portuguese with high confidence. If you remove the accents, the phrase is correctly classified as Spanish with high confidence.

By the way, the translation in Portuguese is "Bestas desagradáveis. Não sei por que concordei em apostar". Both languages have words in common, but I think the issue here is that the underlying model wasn't trained with text that contained accents (or maybe accents were removed during training pre-processing, but the same pre-processing pipeline is not running during inference?)

>>> identifier.classify("Bestias desagradables. No sé por qué acepté apostar")
('pt', 0.9686061146305236)

>>> identifier.classify("Bestias desagradables. No se por que acepte apostar")
('es', 0.9599256901062293)
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

No branches or pull requests

1 participant