Skip to content

ERROR : python excute.py #96

@pumpkinband

Description

@pumpkinband

`>> 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
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions