nikitakit / self-attentive-parser

High-accuracy NLP parser with models for 11 languages.

Home Page:https://parser.kitaev.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

module 'tensorflow' has no attribute 'GraphDef'

LeonCrashCode opened this issue · comments

I got the error from tensorflow: module 'tensorflow' has no attribute 'GraphDef'. My tensorflow version is 2.0.0, is it any quick way to fix it?

I have solved the problem by modifying to tf.compat.v1.GraphDef.

I have this error. It seems benepar can not be used with tensorflow 2.0.0

I am facing the same issue. Which tensorflow version is required?

I also had this problem, and based on this thread, I created a pull request.

If the author takes a while to merge the request, you can install it manually with:

pip uninstall -y benepar 
git clone https://github.com/plandes/self-attentive-parser
cd self-attentive-parser
python setup.py install