dmn-tensorflow icon indicating copy to clipboard operation
dmn-tensorflow copied to clipboard

Some error while running

Open chingyaoc opened this issue 8 years ago • 5 comments

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.

chingyaoc avatar Jul 18 '16 05:07 chingyaoc

Hmm... seems like a python problem. What version of python are you using?

therne avatar Jul 18 '16 13:07 therne

I use python 2.7. Btw in dmn_plus.py, is it proper to initialize only one gru?

chingyaoc avatar Jul 18 '16 14:07 chingyaoc

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?

therne avatar Jul 19 '16 13:07 therne

same problem, could you give a python 2.7 version , thanks

KingAndQueen avatar Jul 26 '16 07:07 KingAndQueen

See if changing the line 76 to the following works for you:

arg = q.append(x["A"])
word_table.add_vocab(arg)

whju avatar Oct 18 '16 20:10 whju