We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Found this issue while passing input as unicode string.
Example
wtl.predict_lang(u"nike running shoes string") ['CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT', 'CANT_PREDICT']
This can be resolved by wrapping all text including unicode text in list.
>>> wtl.predict_lang([u"nike running shoes"]) [u'en']
The text was updated successfully, but these errors were encountered:
#5 fixes this
Sorry, something went wrong.
No branches or pull requests
Found this issue while passing input as unicode string.
Example
This can be resolved by wrapping all text including unicode text in list.
The text was updated successfully, but these errors were encountered: