xinyuan-liu / Chinese-NER

CNN-LSTM-CRF Sequence Tagging. 炼丹系列。
21 stars 15 forks source link

ImportError: #1

Open molyswu opened 7 years ago

molyswu commented 7 years ago

Hi, python train.py Using TensorFlow backend. Traceback (most recent call last): File "train.py", line 9, in from keras.layers import GRU, Dense, Embedding, ChainCRF, LSTM, Bidirectional, Dropout ImportError: cannot import name ChainCR

xinyuan-liu commented 7 years ago

See https://github.com/fchollet/keras/issues/4090

You shuold use this version of Keras for a implemented CRF layer: https://github.com/fchollet/keras/tree/bba6b521abc462261dd65883be59c94e1467b7cf