Skip to content
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

Build Chinese Vocabulary #3

Open
nguyenpm2 opened this issue Mar 2, 2020 · 0 comments
Open

Build Chinese Vocabulary #3

nguyenpm2 opened this issue Mar 2, 2020 · 0 comments

Comments

@nguyenpm2
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant