langid.py icon indicating copy to clipboard operation
langid.py copied to clipboard

a little situation

Open bingwork opened this issue 6 years ago • 0 comments

For example, the sentence "Presidencia de la República - Mexico", the word "de" will be classified as "en", but if i change it to " de ", as add space ,it will work.

can this be worked?

import langid str='de' langid.classify(str) ('en', 9.061840057373047) str=' de ' langid.classify(str) ('es', 1.0269873142242432)`

bingwork avatar Aug 06 '18 08:08 bingwork