nicolas-ivanov / debug_seq2seq

[unmaintained] Make seq2seq for keras work
233 stars 86 forks source link

ImportError running bin/train.py #18

Open angelo337 opened 7 years ago

angelo337 commented 7 years ago

hi there I am trying to start learning this code, however after i download and install everything I try to run your example code but I am getting this error, could you please point me out my mistake? thanks a lot

$ sudo python bin/train.py INFO:gensim.utils:'pattern' package found; utils.lemmatize() is available for English INFO:summa.preprocessing.cleaner:'pattern' package found; tag filters are available for English Using Theano backend. /usr/local/lib/python2.7/dist-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. "downsample module has been moved to the theano.tensor.signal.pool module.") Traceback (most recent call last): File "bin/train.py", line 10, in from lib.nn_model.model import get_nn_model File "/home/creangel/Downloads/keras/seq2seq/debug_seq2seq/lib/nn_model/model.py", line 4, in from seq2seq.models import SimpleSeq2seq File "build/bdist.linux-x86_64/egg/seq2seq/init.py", line 1, in File "build/bdist.linux-x86_64/egg/seq2seq/cells.py", line 1, in File "build/bdist.linux-x86_64/egg/recurrentshop/init.py", line 1, in File "build/bdist.linux-x86_64/egg/recurrentshop/engine.py", line 1, in ImportError: cannot import name Layer

lijuncheng16 commented 7 years ago

SimpleSeq2seq has changed to SimpleSeq2Seq. Typo due to updates...

jianboyang commented 7 years ago

I have the same error, even after changing SImpleSeq2seq to SimpleSeq2Seq

INFO:summa.preprocessing.cleaner:'pattern' package not found; tag filters are not available for English Using Theano backend. Traceback (most recent call last): File "bin/train.py", line 10, in from lib.nn_model.model import get_nn_model File "/Users/212461546/Box Sync/gProject/SmartSignal/_TagMapping/code/DL/debug_seq2seq/lib/nn_model/model.py", line 4, in from seq2seq.models import SimpleSeq2Seq File "build/bdist.macosx-10.7-x86_64/egg/seq2seq/init.py", line 1, in File "build/bdist.macosx-10.7-x86_64/egg/seq2seq/cells.py", line 1, in ImportError: cannot import name weight