Skip to content

Commit 43a2d2b

Browse files
committed
Increase scripts/lexparser/lexparser.sh mem usage to 200m
- While running the standalone parser 4.2.0 from https://stanfordnlp.github.io/CoreNLP/parser-standalone.html I noticed it crashing with test data included in `libexec/data/testsent.txt` with an out of memory exception. Increasing the value from 150m to 170m worked just fine for the test data. Set it to 200m in this patch for good measure. - The 150m setting also causes test failures when trying to install via homebrew on mac, which runs the included `testsent.txt` file. I discovered this initially when creating a PR to bump the version to 4.2.0 for homebrew.
1 parent 8506cdb commit 43a2d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/lexparser/lexparser.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ fi
1010

1111
scriptdir=`dirname $0`
1212

13-
java -mx150m -cp "$scriptdir/*:" edu.stanford.nlp.parser.lexparser.LexicalizedParser \
13+
java -mx200m -cp "$scriptdir/*:" edu.stanford.nlp.parser.lexparser.LexicalizedParser \
1414
-outputFormat "penn,typedDependencies" edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz $*

0 commit comments

Comments
 (0)