From 728d0f3c9031d51542ba30cf4eae58297f6fcd7d Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 4 Jul 2013 19:18:46 +0200 Subject: [PATCH] add corenlp bin --- bin/corenlp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/corenlp diff --git a/bin/corenlp b/bin/corenlp new file mode 100755 index 0000000..fb3b49c --- /dev/null +++ b/bin/corenlp @@ -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 $* -- 2.48.1