llSourcell / tensorflow_chatbot

Tensorflow chatbot demo by @Sirajology on Youtube
1.45k stars 806 forks source link

TypeError: write() argument 1 must be unicode, not str #69

Open Klas96 opened 7 years ago

Klas96 commented 7 years ago

Seam to be giving me an error when making the vocab20000 file.

Mode : train

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

Full Vocabulary Size : 45504

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/klas/Documents/Python/Untitled Folder/tensorflow_chatbot-master/data_utils.py", line 135, in prepare_custom_data create_vocabulary(enc_vocab_path, train_enc, enc_vocabulary_size, tokenizer) File "/home/klas/Documents/Python/Untitled Folder/tensorflow_chatbot-master/data_utils.py", line 85, in create_vocabulary vocab_file.write(w + '\n') TypeError: write() argument 1 must be unicode, not str

dineshobjects commented 6 years ago

I am facing same problem. Please advise.

tusharjayanti commented 6 years ago

I am also facing the same error. Please help.

cprovatas commented 6 years ago

Same error please help