I am getting below error when I train a custom NER model using openNlp api with more than 2 million sentences.
java.lang.OutOfMemoryError: Java heap space:failed reallocation of scalar replaced objects.
I tried below solution but its not working for me.
- Increasing the heap size, via "-Xmx1024m" (or more),
How can I solve this issue?