Too small initial heap error – stanford parser

Too small initial heap error – stanford parser

Type -Xmx1024m instead of -mx1024.

See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

It should be -mx1024m. I skipped m.

One more thing: in the -cp, the model jar should also be included.

... -cp stanford-parser.jar;stanford-parser-3.5.2-models.jar...

(assuming you are using the latest version).

Otherwise an IO Exception will be thrown.

Too small initial heap error – stanford parser

There may be some arguments that are preexisting in the IDE.
In eclipse:
Go to-> Run as-> run configuration-> Arguments
then Delete the arguments that are used previously.
Restart your eclipse.
Worked for me!

Leave a Reply

Your email address will not be published.