-
Notifications
You must be signed in to change notification settings - Fork 445
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
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 2400: ordinal not in range(128) #112
Comments
This may be caused by the encoding problem. You can try |
Thank you very much for your reply. Traceback (most recent call last): |
Oh, this is a different error. It seems the original error is solved. The current error can be solved. It seems caused by the line You can try to add 'errors='ignore'' in the open function; |
@jiesutd Thank you for giving your time. |
I guess it should be solved after install cuda |
I trained the model on GPU, python 2.7 installed. After that I try to decode this model on window with python 3.7.
(base) D:\NER\NCRFpp>python main.py --config demo.decode.config
Seed num: 42
MODEL: decode
Traceback (most recent call last):
File "main.py", line 442, in
data.load(data.dset_dir)
File "D:\NER\NCRFpp\utils\data.py", line 305, in load
tmp_dict = pickle.load(f)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 2400: ordinal not in range(128)
How can I solve it? Thanks in advance.
The text was updated successfully, but these errors were encountered: