Open vanatteveldt opened 7 years ago
As of https://github.com/MPvHarmelen/coref_draft/commit/546cc1493fffa593500a9928862d17c046eef67e, the only globals left are the ones from constituents.py
, which are used only (but extensively) in constituent_info.py
and naf_info.py
.
The code uses globals in a number of places, making it unsafe to use in a threaded environment.
Best solution is probably to refactor the globals into instance variables on either a new class or on the naf object, and maybe they can even be moved to KafNafParserPy as they look pretty generic (?).
Simple test program:
Results in: