Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some error while running #2

Open
chingyaoc opened this issue Jul 18, 2016 · 5 comments
Open

Some error while running #2

chingyaoc opened this issue Jul 18, 2016 · 5 comments

Comments

@chingyaoc
Copy link

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.

@therne
Copy link
Owner

therne commented Jul 18, 2016

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

@chingyaoc
Copy link
Author

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

@therne
Copy link
Owner

therne commented Jul 19, 2016

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?

@KingAndQueen
Copy link

KingAndQueen commented Jul 26, 2016

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

@whju
Copy link

whju commented Oct 18, 2016

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants