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

ERROR : python excute.py #96

Open
pumpkinband opened this issue Mar 10, 2019 · 0 comments
Open

ERROR : python excute.py #96

pumpkinband opened this issue Mar 10, 2019 · 0 comments

Comments

@pumpkinband
Copy link

`>> Mode : train

Preparing data in working_dir/
Creating vocabulary working_dir/vocab20000.enc from data/train.enc
processing line 100000

Full Vocabulary Size : 45467

Vocab Truncated to: 20000
Traceback (most recent call last):
File "execute.py", line 352, in
train()
File "execute.py", line 138, in train
gConfig['dec_vocab_size'])
File "/home/samir/tensorflow_chatbot/data_utils.py", line 135, in prepare_custom_data
create_vocabulary(enc_vocab_path, train_enc, enc_vocabulary_size, tokenizer)
File "/home/samir/tensorflow_chatbot/data_utils.py", line 85, in create_vocabulary
vocab_file.write(w + '\n')
TypeError: write() argument 1 must be unicode, not str
`

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