debug_seq2seq icon indicating copy to clipboard operation
debug_seq2seq copied to clipboard

ImportError running bin/train.py

Open angelo337 opened this issue 8 years ago • 2 comments

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

angelo337 avatar Dec 09 '16 20:12 angelo337

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

lijuncheng16 avatar Dec 19 '16 05:12 lijuncheng16

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

jianboyang avatar Apr 26 '17 16:04 jianboyang