You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I put in german sentences with japanese words quoted then it might happen, that lingua claims it's 100% japanese.
For example: Wir stoßen an: "かんぱい". Er lächelte. (in english, if you are interested: »We toasted: "kanpai". He smiled«) leads to a ConfidenceValue of 1.0 of japanese. While Wir stoßen an. Er lächelte. has a ConfidenceValue of 0.6014287047855706 for german and 0.0 for japanese (I included all languages for detection).
The expected result in both should be german, maybe with slight japanese confidence in the first case since a japanese word is quoted but it should not be 100% japanese.
The text was updated successfully, but these errors were encountered:
pemistahl
changed the title
Increase single language detection when words in other languages are quoted
Improve single language detection when words in other languages are quoted
Jan 19, 2023
When I put in german sentences with japanese words quoted then it might happen, that lingua claims it's 100% japanese.
For example:
Wir stoßen an: "かんぱい". Er lächelte.
(in english, if you are interested: »We toasted: "kanpai". He smiled«) leads to a ConfidenceValue of 1.0 of japanese. WhileWir stoßen an. Er lächelte.
has a ConfidenceValue of 0.6014287047855706 for german and 0.0 for japanese (I included all languages for detection).The expected result in both should be german, maybe with slight japanese confidence in the first case since a japanese word is quoted but it should not be 100% japanese.
The text was updated successfully, but these errors were encountered: