langid.py
langid.py copied to clipboard
a little situation
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)`