dmn-tensorflow
dmn-tensorflow copied to clipboard
Some error while running
Hi, I simply run the code by ./main.py --task 1
and error occurred.
Traceback (most recent call last):
File "./main.py", line 7, in <module>
from read_data import read_babi, get_max_sizes
File "/home/james/Work/dmn-tensorflow/read_data.py", line 76
word_table.add_vocab(*q, x["A"])
SyntaxError: only named arguments may follow *expression
Is seems that something is wrong with data loader.
Hmm... seems like a python problem. What version of python are you using?
I use python 2.7.
Btw in dmn_plus.py
, is it proper to initialize only one gru?
I haven't tested on python 2.7 since my version is 3.5. I'll test and fix on it!
What GRU are you referring?
same problem, could you give a python 2.7 version , thanks
See if changing the line 76 to the following works for you:
arg = q.append(x["A"])
word_table.add_vocab(arg)