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

Incorrect detection #17

Open
debuggio opened this issue Nov 26, 2024 · 1 comment
Open

Incorrect detection #17

debuggio opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@debuggio
Copy link

debuggio commented Nov 26, 2024

Hi guys!
I use py3langid==0.2.2 and I found that in some cases Chinese language has higher probability than it probably should be. For example

identifier = LanguageIdentifier.from_pickled_model(MODEL_FILE, norm_probs=True)
identifier.rank("Al furjan")

outputs:
[('zh', 0.24405981600284576), ('fi', 0.16715779900550842), ('mt', 0.1392195224761963), ('et', 0.10675894469022751), ('sl', 0.07787516713142395), ('en', 0.05285739526152611)......]

I understand that the text is quite short and it may return languages other that English, but Chinese?

@adbar adbar added the bug Something isn't working label Dec 2, 2024
@adbar
Copy link
Owner

adbar commented Dec 2, 2024

The original model is error-prone on short texts, as you say this is clearly a bug though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants