GateNLP/python-gatenlp

Make GateWorker implement the context manager api

Closed this issue · 0 comments

So we can do:

with GateWorker(...) as gw:
   ga = GateWorkerAnnotator(pipeline, gw)
   # do the processing

and closing the gateworker is guaranteed to happen.