vinhkhuc / JFastText

Java interface for fastText

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method to unload instance

pommedeterresautee opened this issue · comments

It seems there is no method to unload a model to free memory.
Can you please add one or give instruction on how to implement it?

Kind regards,
Michael

Hi Michael,
It turns out that Java's GC doesn't collect memory allocated by native calls. I've added unloadModel() to release memory.

Let me know if it works for you.

Thanks,
Vinh

Thanks, that's exactly what I was looking for.
I try it tonight!

Kind regards,
Michaël

Thanks it works!

Hi Michaël,
I've deployed v0.2 to maven central.

Thanks,
Vinh