Make GateWorker implement the context manager api
Closed this issue · 0 comments
johann-petrak commented
So we can do:
with GateWorker(...) as gw:
ga = GateWorkerAnnotator(pipeline, gw)
# do the processing
and closing the gateworker is guaranteed to happen.