llSourcell / tensorflow_chatbot

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

IndexError: list index out of range when testing the Chatbot #67

Open EmanSaad11 opened 7 years ago

EmanSaad11 commented 7 years ago

hello, I'm working on an Arabic Chatbot using tensor flow, and after i prepare the data and tried the chatbot for 7 hours i tried to test it and i'm getting this error

>> Mode : test

WARNING:tensorflow:From /Users/emansaad/Documents/chatbot/seq2seq_model.py:166 in __init__.: all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Please use tf.global_variables instead.
Created model with fresh parameters.
WARNING:tensorflow:From execute.py:120 in create_model.: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.
> مرحبا
Traceback (most recent call last):
  File "execute.py", line 322, in <module>
    decode()
  File "execute.py", line 243, in decode
    print(" ".join([tf.compat.as_str(rev_dec_vocab[output]) for output in outputs]))
  File "execute.py", line 243, in <listcomp>
    print(" ".join([tf.compat.as_str(rev_dec_vocab[output]) for output in outputs]))
IndexError: list index out of range