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

Not detecting Hindi at all. #58

Closed
abhijeet3922 opened this issue Aug 3, 2016 · 1 comment
Closed

Not detecting Hindi at all. #58

abhijeet3922 opened this issue Aug 3, 2016 · 1 comment

Comments

@abhijeet3922
Copy link

Hi,

First of all, i could not understand how to give input for Hindi language. Its there in list of pre-trained language.

So i gave these test sentence of hindi.

  1. "tum kahaan ja rahe ho" - Result -normalized (Fi, '0.8528')
    i gave the above sentence in cmd on windows.
  2. "तुम कहाँ जा रहे हो" - Result -normalized (Zh, '0.9999')
    i gave the above hindi sentence in cmd with "test.docx" file as input
    python langid.py -n < test.docx

What could be the possible reasons for not detecting hindi.

I tried with litthe bigger sentences too. Doesnot seem to work. What am i missing ??

@abhijeet3922
Copy link
Author

Finally, i got it.

We need to give the input text file saved in UTF-8 encoding.

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

1 participant