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

For short strings, it is more accurate to use all ngrams rather than a sample #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maparent
Copy link

No description provided.

@YPCrumble
Copy link

@maparent do you think this adjustment would make the library better at identifying really short strings like "To Kill a Mockingbird", which gets detected as English ~95% of the time currently but sometimes translated as tr or sv.

@maparent
Copy link
Author

maparent commented Nov 7, 2022

I confirm it is detected as en on my branch. ETA: And my edit makes it deterministic on short enough strings.

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