CofeehousePy/services/corenlp/scripts/lexparser/lexparser.sh

15 lines
383 B
Bash
Raw Normal View History

2021-01-09 03:43:33 +01:00
#!/usr/bin/env bash
#
# Runs the English PCFG parser on one or more files, printing trees only
if [ ! $# -ge 1 ]; then
echo Usage: `basename $0` 'file(s)'
echo
exit
fi
scriptdir=`dirname $0`
java -mx150m -cp "$scriptdir/*:" edu.stanford.nlp.parser.lexparser.LexicalizedParser \
-outputFormat "penn,typedDependencies" edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz $*