deep-coref icon indicating copy to clipboard operation
deep-coref copied to clipboard

Getting Error: ImportError: cannot import name Graph, while training the model

Open devendra2689 opened this issue 7 years ago • 0 comments

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

devendra2689 avatar Feb 19 '18 06:02 devendra2689