nikitakit / self-attentive-parser

High-accuracy NLP parser with models for 11 languages.
https://parser.kitaev.io/
MIT License
861 stars 153 forks source link

No tensorflow 2.0 support? #54

Closed alex-calderwood closed 3 years ago

alex-calderwood commented 4 years ago

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?

ValNyz commented 4 years ago

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

interrogator commented 4 years ago

Open PR to fix this is #44