pemistahl / lingua

The most accurate natural language detection library for Java and the JVM, suitable for long and short text alike
Apache License 2.0
706 stars 63 forks source link

Not Detecting few words in French, It is detecting as a English And Few words not detecting as English but it is English #206

Closed vidyasagarfis closed 1 month ago

vidyasagarfis commented 7 months ago

I have few words or sentences in French, Need to detect the Language of it. While running the script those words are recognizing as a English and getting failed.

Ex: French Words detecting as English "value":"Seleccionar actividades" "value":"Contacter le service client:"

Below words are in English but it is detecting as French. "value":"notifications!" "value":"Contributions: $0.00" etc.,

Can you help me to identify this words as a French and English properly.

Thanks in advance!

pemistahl commented 1 month ago

@vidyasagarfis Sorry for my late response. Statistical approaches to language recognition are never 100 % correct. Experiment with the LanguageDetector settings and methods to find out what works best for you.