Open cseshahriar opened 1 year ago
I have the same problem. from langdetect import detect_langs detect_langs("Buy iPhone") [vi:0.9999983729464899]
This problem exists in most words.!!
@cseshahriar I suggest you use the lingua library, it is much more accurate. I tested and was satisfied. https://github.com/pemistahl/lingua-py
import pprint from langdetect import detect_langs
langdetect_ranks = detect_langs("Hello") pprint.pprint(langdetect_ranks)
Interesting
from langdetect import detect detect("Hello world") 'nl'