You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build the word vocabularies with:
python -m bin.generate_vocab testdata/toy.zh --max_vocab_size 100 > testdata/vocab.zh
But return:
(TF) C:\Users\NguyenPM\PycharmProjects\t2t_nmt>python -m bin.generate_vocab testdata/toy.zh --max_vocab_size 100 > testdata/vocab.zh
Traceback (most recent call last):
File "C:\Users\NguyenPM\Anaconda3\envs\TF\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\NguyenPM\Anaconda3\envs\TF\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\NguyenPM\PycharmProjects\t2t_nmt\bin\generate_vocab.py", line 63, in
for line in args.infile:
File "C:\Users\NguyenPM\Anaconda3\envs\TF\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 9: character maps to
Can you tell me how to fix it?
The text was updated successfully, but these errors were encountered:
I build the word vocabularies with:
python -m bin.generate_vocab testdata/toy.zh --max_vocab_size 100 > testdata/vocab.zh
But return:
(TF) C:\Users\NguyenPM\PycharmProjects\t2t_nmt>python -m bin.generate_vocab testdata/toy.zh --max_vocab_size 100 > testdata/vocab.zh
Traceback (most recent call last):
File "C:\Users\NguyenPM\Anaconda3\envs\TF\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\NguyenPM\Anaconda3\envs\TF\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\NguyenPM\PycharmProjects\t2t_nmt\bin\generate_vocab.py", line 63, in
for line in args.infile:
File "C:\Users\NguyenPM\Anaconda3\envs\TF\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 9: character maps to
Can you tell me how to fix it?
The text was updated successfully, but these errors were encountered: