dbpedia / neural-qa

📚 A Neural QA Model for DBpedia using Neural SPARQL Machines.
MIT License
85 stars 20 forks source link

Python2 and Python3 Compatiablity code for Anand/pipeline3 #17

Closed BaiBlanc closed 4 years ago

BaiBlanc commented 4 years ago

Description: Several libraries used is only based on python3, this generates AttributeError when running on Python2 This commit fixes this incompatible error

I've imported the libraries working on python2 and added try:#python3

original code

except: #python2

code working on python2

mommi84 commented 4 years ago

Already merged in #22.