PythonNLTKpos_tag不返回正确的语音标记
text = word_tokenize("The quick brown fox jumps over the lazy dog")
nltk.pos_tag(text)
[('The', 'DT'), ('quick', 'NN'), ('brown', 'NN'), ('fox', 'NN'), ('jumps', 'NNS'), ('over', 'IN'), ('the', 'DT'), ('lazy', 'NN'), ('dog', 'NN')]
quick brown lazy
('quick', 'JJ'), ('brown', 'JJ') , ('lazy', 'JJ')
quick
, brown
fox
相关分类