在使用StanfordCoreNLP对文本句子进行分析时,需要先对句子进行分词 nlp.word_tokenize(sentence) 然后对分词后的句子进行句子成分分析 nlp.pos_tag(sentence) 然后继续进行命名实体识别 nlp.ner(sentence) 再之后就是句法分析与依存句法分析 nlp.parse(sentence) nlp.dependency_parse(sentence)
2020-01-03 11:20:57 5KB 自然语言处理
1