nlpub/pymystem3

processes of mystem still alive

thegraal opened this issue · 3 comments

I use .lemmatize() in many threads(those threading.Thread)
There are some "..bin/mystem --format json -gi -d -c" still alive after my threads are finished.
Look at pic to keep it clear
screenshot at 00-54-08
is there a way to finish these processes? it consumes large amount of memory after few work days

hello,

we will look into the problem. if you find the solution yourself, please do not hesitate to make a pull request

We could provide Mystem.close method to shutdown the mystem process.

In pymystem3-0.1.4, the method Mystem.close is available.