1.官网主页:http://nlp.stanford.edu/software/tagger.shtml
2.在Eclipse上调用API:http://new.galalaly.me//2011/05/tagging-text-with-stanford-pos-tagger-in-java-applications/
要求JDK1.8的环境,否则提示unsupportable。
3.命令行调用POS:
1)首先定位到Stanford POS 所在的文件夹,
2)从txt文件中读取语句进行标注,结果输出在当前文件夹的sample-tagged.txt中。结果与sample-output.txt对比( using the left3words model)
调用如下红色标注的命令:
To tag a file using the pre-trained bidirectional model
=======================================================
java -mx300m -classpath stanford-postagger.jar edu.stanford.nlp.tagger.maxent.MaxentTagger -model models/wsj-0-18-bidirec