-
Notifications
You must be signed in to change notification settings - Fork 418
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
Error in _read_tsv when trying to read in the data #48
Comments
While using a model from path, it is asking for a config.json file. If i use the config file from this project i get the following error:
ValueError: Unrecognized model in ../models/en/. Should have a |
@mahmuduzzaman which version of the transformers library do you have installed? |
what's the resolution for this? |
Hey there!
I found that when trying to train the model there was an error, because the _read_tsv's call to open on line 63 in Utils.py didn't have the encoding specified.
To fix it I changed it from:
def _read_tsv(cls, input_file): with open(input_file, "r") as f:
To:
def _read_tsv(cls, input_file): with open(input_file, "r",encoding='utf-8') as f:
Now it works great! Thanks!
The text was updated successfully, but these errors were encountered: