Python入门:NLTK(二)POS Tag, Stemming and Lemmatization
常用操作Part-Of-SpeechTaggingandPOSTaggerPOS主要是用于标注词在文本中的成分,NLTK使用如下:>>>importnltk>>>text=nltk.word_tokenize(“DiveintoNLTK:Part-of-speechtaggingandPOSTagger”)>>>text[‘Dive’,‘into’,‘NLTK’,‘:’,‘Part-of-spee