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

normalize langid values when working on notebook #71

Open
Pala-beh opened this issue May 9, 2019 · 1 comment
Open

normalize langid values when working on notebook #71

Pala-beh opened this issue May 9, 2019 · 1 comment

Comments

@Pala-beh
Copy link

Pala-beh commented May 9, 2019

Hello,
Could someone tell me how to normalize the values in case we work on a notebook?
I would like an equivalent of "python langid.py -n ..." for the notebook

Thanks :)

@mariokostelac
Copy link

mariokostelac commented Feb 13, 2020

from langid.langid import LanguageIdentifier, model
language_identifier = LanguageIdentifier.from_modelstring(model, norm_probs=True)
language_identifier.classify(text)

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

No branches or pull requests

2 participants