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

detect("Hello world") say nl! #108

Open
cseshahriar opened this issue Feb 19, 2023 · 4 comments
Open

detect("Hello world") say nl! #108

cseshahriar opened this issue Feb 19, 2023 · 4 comments

Comments

@cseshahriar
Copy link

from langdetect import detect
detect("Hello world")
'nl'

@SardarDelha
Copy link

I have the same problem.
from langdetect import detect_langs
detect_langs("Buy iPhone")
[vi:0.9999983729464899]

This problem exists in most words.!!

@SardarDelha
Copy link

@cseshahriar
I suggest you use the lingua library, it is much more accurate.
I tested and was satisfied.
https://github.com/pemistahl/lingua-py

@vsmelov
Copy link

vsmelov commented Jun 28, 2023

import pprint
from langdetect import detect_langs

langdetect_ranks = detect_langs("Hello")
pprint.pprint(langdetect_ranks)

[no:0.6405345342314349, fi:0.3594654657685652]

@huelsgp27
Copy link

Interesting

Repository owner deleted a comment from TomLucidor Nov 2, 2023
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

4 participants