whatlanggo icon indicating copy to clipboard operation
whatlanggo copied to clipboard

Language detection issue

Open jyothisjose opened this issue 4 years ago • 0 comments

While using "Detect" function Arabic and English in not detecting properly.

We are expecting language as "english" for "hi" and "hello".

But for "hi" getting below response Language: Zulu Script: Latin Confidence: 0.005592493630771142

and for "hello" getting response as Language: Somali Script: Latin Confidence: 0.010694234025487925

How can we provide 2 default languages like "arabic" and "english"? If "arabic" is not detected should provide language as "english" with confidence.

If we try to detect a string with 2 languages "الأجهزة تحت testing type" not getting either english nor arabic.

Language: Uyghur Script: Latin Confidence: 0.06648113790970933

Any idea to handle this.

jyothisjose avatar Aug 21 '20 10:08 jyothisjose