Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix language detection of non-latin alphabets even at few characters #10276

Merged
merged 1 commit into from
Mar 15, 2019

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Mar 15, 2019

CLD3 is unreliable on short text for latin alphabets, because a lot of languages share them. However, some languages have specific character sets, which makes detecting them more reliable even at short lengths. This PR adds an exception to the 140 characters threshold rule, so that we can reliably detect Japanese, Chinese, Hebrew, Korean, and some others.

Resolve #9760

@Gargron Gargron force-pushed the fix-language-detection-non-latin branch from c25b57f to f5d4aa3 Compare March 15, 2019 03:25
@Gargron Gargron force-pushed the fix-language-detection-non-latin branch from f5d4aa3 to 0f5a9db Compare March 15, 2019 03:50
@Gargron Gargron merged commit 1b16770 into master Mar 15, 2019
@Gargron Gargron deleted the fix-language-detection-non-latin branch March 15, 2019 04:07
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants