-
Notifications
You must be signed in to change notification settings - Fork 8
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
Language Identification Helper #8
Comments
This is a great idea and API suggestion! |
I've assigned it to myself, so that I can investigate the algos for text-langauge-id. Offhand, I know of https://github.com/saffsd/langid.py and there maybe some others based on measures of perplexity wrt to a simple n-gram or RNN language model. |
Instead of sleeping I'm researching text language id 😆 . . . Fasttext (from Facebook, 2017) is claiming superiority over They support Yorùbá (per their supported lang ISO code list) and it seems like its pretty straightforward to train. Next steps are to try out the FastText tools, to see if giving it text from yoruba-text, it can learn to id Yorùbá text accurately enough at the sentence and then word level. |
Awesome. |
Cool, we have some options! While examining the FastText last night, I pulled down some 65M words from a dozen languages (their training corpus) and I thought that rather than have a model that only does Yorùbá {True, False} <-- single class classification (logistic regression) maybe:
|
I'm proposing a language identification helper module that can:
Proposing a usage similar to:
Then this model can be loaded and used to identify languages like:
The text was updated successfully, but these errors were encountered: