]> git.rmz.io Git - dotfiles.git/blob - bin/corenlp
Other changes at cadscan (with the ones I want to keep stripped)
[dotfiles.git] / bin / corenlp
1 #!/usr/bin/env bash
2 #
3 # Runs Stanford CoreNLP.
4 # Simple uses for xml and plain text output to files are:
5 # ./corenlp.sh -file filename
6 # ./corenlp.sh -file filename -outputFormat text
7
8 scriptdir="$HOME/src/stanford-corenlp-full-2013-04-04"
9 classpath="$scriptdir/stanford-corenlp-2013-04-04.jar:$scriptdir/stanford-corenlp-2013-04-04-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar"
10 args="-Xms512M -Xmx4096M"
11
12 echo java -cp \"$scriptdir/*\" ${args} edu.stanford.nlp.pipeline.StanfordCoreNLP $*
13 java -cp "$scriptdir/*" ${args} edu.stanford.nlp.pipeline.StanfordCoreNLP $*