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

LookupError: Can't find any language named 'hinglish' #223

Closed
alexrao02 opened this issue Mar 11, 2023 · 1 comment
Closed

LookupError: Can't find any language named 'hinglish' #223

alexrao02 opened this issue Mar 11, 2023 · 1 comment

Comments

@alexrao02
Copy link

Thanks for ur work! Here is a problem about the package.
I run the version 0729bca in colab(I have to run this version because of demands).
And I get this error:

LookupError: Can't find any language named 'hinglish'

How can I fix it?

@ygorg
Copy link
Collaborator

ygorg commented Mar 15, 2023

Hi, thank you for this issue. pke does not support 'hinglish' language, there is no spacy model for this language and no stemmer.
You can specify language='en' to treat these document as english.
Alternatively use the latest version and preprocess your documents as such using custom tokenizer and postagger:

excp_msg += "\n\t[[('The', 'DET'), ('brown', 'ADJ'), ('fox', 'NOUN'), ('.', 'PUNCT')]]"

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