I'm trying to load Google news corpus using this code:
File gModel = new File("/word2vec/GoogleNews-vectors-negative300.bin.gz");
Word2Vec vec = WordVectorSerializer.loadGoogleModel(gModel, true);
but it causes this error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
I tried to change VM options parameters like it explained in official documenatation of deeplearning4j with:
-Xms1024m -Xmx10g -XX:MaxPermSize=2g