120 likes | 313 Views
Stanford POS tagger. 17 th February 2011. System requirement. Java 1.5+ http://www.java.com/en/download/index.jsp. Part-of-speech name abbreviations. Download. http://nlp.stanford.edu/software/stanford-postagger-2010-05-26.tgz. GUI. GUI. Command. generate a default properties file.
E N D
Stanford POS tagger 17th February 2011
System requirement • Java 1.5+ • http://www.java.com/en/download/index.jsp
Download • http://nlp.stanford.edu/software/stanford-postagger-2010-05-26.tgz
Command • generate a default properties file. • Tag file.
generate a default properties filecommand • java -classpath stanford-postagger.jar edu.stanford.nlp.tagger.maxent.MaxentTagger -genprops > myPropsFile.prop
Tag file command • java -mx300m -classpath stanford-postagger.jar edu.stanford.nlp.tagger.maxent.MaxentTagger -model models/bidirectional-distsim-wsj-0-18.tagger -textFile sample-input.txt > sample-tagged.txt
Result • sample-input.txt The School of Liberal Arts was originally the Department of Language and Social Studies under the Faculty of Industrial Education. • sample-tagged.txt The_DTSchool_NNof_INLiberal_JJArts_NNSwas_VBDoriginally_RBthe_DTDepartment_NNPof_INLanguage_NNPand_CCSocial_NNPStudies_NNPunder_INthe_DTFaculty_NNPof_INIndustrial_NNPEducation_NNP ._.