Too small initial heap error - stanford parser

Viper picture Viper · Sep 21, 2015 · Viewed 25.1k times · Source

I am trying my hands on the Stanford dependency parser. I tried running the parser from command line on windows to extract the dependencies using this command:

java -mx100m -cp "stanford-parser.jar" edu.stanford.nlp.trees.EnglishGrammaticalStructure -sentFile english-onesent.txt -collapsedTree -CCprocessed -parserFile englishPCFG.ser.gz

I am getting the following error:

Error occurred during initialization of VM  
Too small initial heap

I changed the memory size to -mx1024, -mx2048 as well as -mx4096. It didn't change anything and the error persists.

What am I missing?

Answer

sndyuk picture sndyuk · Sep 21, 2015