deep-coref
deep-coref copied to clipboard
Getting Error: ImportError: cannot import name Graph, while training the model
I am getting below error while training the model, following the given steps. Seems this code uses Graph, which is no more supported by newer version of Keras. Can you please help me to fix the problem.
devendra@krishna:~/deep-coref-master_2.7$ python run_all.py
Using Theano backend.
Traceback (most recent call last):
File "run_all.py", line 5, in <module>
import clustering_learning
File "/home/development/devendra/deep-coref-master_2.7/clustering_learning.py", line 2, in <module>
import clustering_models
File "/home/development/devendra/deep-coref-master_2.7/clustering_models.py", line 2, in <module>
import pairwise_models
File "/home/development/devendra/deep-coref-master_2.7/pairwise_models.py", line 9, in <module>
from keras.models import Graph
ImportError: cannot import name Graph