optimaize / language-detector

Language Detection Library for Java
Apache License 2.0
567 stars 165 forks source link

Customize code to detect a prefer language in mix languages sentece #82

Closed DucDuongg closed 6 years ago

DucDuongg commented 6 years ago

Hi Fabian and all,

Suppose I have a sentence contains 2 languages, e.g. "je vais voir le film The return of the King", and I'd like to detect it as "fr" instead of "en". Is there any way to edit a "weight" or a "threshold" of "fr" ?

Could you please give me some suggestion ? Thank you in advance