You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
417 B
19 lines
417 B
#!/bin/sh |
|
|
|
# determine Java environment |
|
export JAVA_PLATFORM="sun-jdk" |
|
eval `@l_prefix@/bin/java-toolkit -e` |
|
|
|
# determine main class |
|
main="edu.stanford.nlp.pipeline.StanfordCoreNLP" |
|
if [ ".$1" = ".-server" ]; then |
|
shift |
|
main="edu.stanford.nlp.pipeline.StanfordCoreNLPServer" |
|
fi |
|
|
|
# pass-through execution |
|
exec @l_prefix@/bin/java \ |
|
-mx5g -cp "@l_prefix@/lib/corenlp/*" \ |
|
"$main" \ |
|
${1+"$@"} |
|
|
|
|