berkeley-entity icon indicating copy to clipboard operation
berkeley-entity copied to clipboard

java OutOfMemoryError: heap space

Open yuliagrishina opened this issue 8 years ago • 1 comments

Hi Greg, I keep getting java OutOfMemoryError when I try to train a new model. I already switched to COREF_TRAIN_PREDICT mode as you suggest in the readme file, but the error is still there. Increasing the heap size does not help. Any suggestions how to fix that would be very much appreciated! Thanks! Yulia

UPD: I found the solution. it happened because my conll file was somehow missing document borders and was read in as a single document. adding document borders ("#begin document..") solved the problem.

yuliagrishina avatar Apr 26 '16 09:04 yuliagrishina

Hi Yulia,

Can you send me the output log? The trick I suggested only works when it's crashing due to the coreference scorer. When you're training, you still need to load the entire train set and keep it in memory. How much data are you training on and what size heap are you providing?

Greg

On Tue, Apr 26, 2016 at 2:03 AM, yuliagrishina [email protected] wrote:

Hi Greg, I keep getting java OutOfMemoryError when I try to train a new model. I already switched to COREF_TRAIN_PREDICT mode as you suggest in the readme file, but the error is still there. Increasing the heap size does not help. Any suggestions how to fix that would be very much appreciated! Thanks! Yulia

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/gregdurrett/berkeley-entity/issues/10

gregdurrett avatar Apr 26 '16 21:04 gregdurrett