CofeehousePy/services/corenlp/doc/tagger/stanford-postagger.sh

7 lines
262 B
Bash

#!/bin/sh
#
# usage: ./stanford-postagger.sh model textFile
# e.g., ./stanford-postagger.sh models/english-left3words-distsim.tagger sample-input.txt
java -mx300m -cp 'stanford-postagger.jar:' edu.stanford.nlp.tagger.maxent.MaxentTagger -model $1 -textFile $2