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

No tensorflow 2.0 support?

alex-calderwood opened this issue · comments

I'm getting the error AttributeError: module 'tensorflow' has no attribute 'GraphDef' which appears to be an error resulting from using tensorflow 2.0. Is there any plan to add support for tensorflow 2.0? In the meantime what should I do to fix this?

You can replace some class in base_parser.py:
tf.GraphDef by tf.compat.v1.GraphDef
and
tf.Session by tf.compat.v1.Session

Open PR to fix this is #44