]> git.rmz.io Git - dotfiles.git/commitdiff
add corenlp bin
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 4 Jul 2013 17:18:46 +0000 (19:18 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 4 Jul 2013 17:18:46 +0000 (19:18 +0200)
bin/corenlp [new file with mode: 0755]

diff --git a/bin/corenlp b/bin/corenlp
new file mode 100755 (executable)
index 0000000..fb3b49c
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+#
+# Runs Stanford CoreNLP.
+# Simple uses for xml and plain text output to files are:
+#    ./corenlp.sh -file filename
+#    ./corenlp.sh -file filename -outputFormat text 
+
+scriptdir="$HOME/src/stanford-corenlp-full-2013-04-04"
+classpath="$scriptdir/stanford-corenlp-2013-04-04.jar:$scriptdir/stanford-corenlp-2013-04-04-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar"
+args="-Xms512M -Xmx4096M"
+
+echo java -cp \"$scriptdir/*\" ${args} edu.stanford.nlp.pipeline.StanfordCoreNLP $*
+java -cp "$scriptdir/*" ${args} edu.stanford.nlp.pipeline.StanfordCoreNLP $*