facebookresearch / MUSE

A library for Multilingual Unsupervised or Supervised word Embeddings
Other
3.18k stars 544 forks source link

Handle wrong lines in the dictionary (empty line or unknown symbols) #126

Closed mimipaskova closed 5 years ago

mimipaskova commented 5 years ago

I had some error with dictionaries which I generated. Some of the words/symbols cannot be read from python and there is an error in line 60 in word_translation - ValueError: not enough values to unpack (expected 2, got 0) I manage to check this in if and to show and ignore these words.

My case is supervised with dico-train default with my custom dictionaries.

facebook-github-bot commented 5 years ago

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

glample commented 5 years ago

Thank you!