amir-zeldes / xrenner

eXternally configurable REference and Non Named Entity Recognizer
Other
17 stars 11 forks source link

Xrenner.docname is not set unless running standalone #83

Closed asharkinasuit closed 6 years ago

asharkinasuit commented 6 years ago

Because LexData.__int__ already sets its docname to "untitled", the check at xrenner_xrenner.py:76 always fails and the docname is never set when xrenner is run from within a Python session. Since docname isn't set, the call to depedit later on fails because it uses self.docname, which is still unset. If xrenner is run independently, a filename will be found and this problem doesn't occur.

amir-zeldes commented 6 years ago

That's right, thanks!