apache / uima-uimacpp

C++ support for Apache UIMA
https://uima.apache.org/
Apache License 2.0
15 stars 19 forks source link

Separate Python annotator from Python extension #8

Open DrDub opened 8 months ago

DrDub commented 8 months ago

The Python annotator is a DLL that is both a UIMACPP annotator and a Python module.

That is very clever but causes problems when trying to load multiple version of the UIMACPP annotator or loading them using different multi-threaded configurations.

Instead, the code should build two different DLLs, one for the annotator and another for the Python module.

tmjoris commented 7 months ago

Hello @DrDub I would also like to help solve this issue, any guidance would be highly appreciated

DrDub commented 7 months ago

Hello @tmjoris, mind taking a look at #15 and see if you have luck building the SDK following the instructions? Please comment about that on the PR.

Regarding this issue, it boils down to splitting the file pythonnator.cpp into two file and having the Makefile builds them.