Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

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

Merged
merged 1 commit into from
Apr 23, 2019

Conversation

mimipaskova
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

glample commented Apr 23, 2019

Thank you!

@glample glample merged commit 3159355 into facebookresearch:master Apr 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants