OOM when using pyjnius with pipe function #11401
Replies: 1 comment 8 replies
-
Sorry you're having an issue with this. To be clear, is the issue that spaCy is using a lot of memory, or is it that it only uses a lot of memory when you're also using pyjnius? I'm not familiar with pyjnius, but based on your sample code it's not clear why you're using it here, since it seems to be for calling Java code from Python. More generally, the way you're cutting your doc into chunks and passing it to Besides that... Perhaps your batch size is large for the machine you have? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I am using nlp.pipe function for identifying ners in my script and I have imported pyjnius the memory shoots up very fast.
The file that i am trying to read is a 4gb file. Here is my script.
Your Environment Details
Beta Was this translation helpful? Give feedback.
All reactions