包括Spacy,NLTK,Standford结果
- test_nltk.py #nltk 依赖:import nltk
- test_stanford.py #依赖models/.jar models/.gz 修改各jar模型 识别结果相同
- test_spacy.py #spacy 依赖:import spacy + en 模型,en模型效果见spacy官网介绍
- 原句:Chinese President Xi Jinping, also general secretary of the Communist Party of China (CPC) Central Committee and chairman of the Central Military Commission, addresses a national conference in Beijing on Tuesday and Wednesday.
-
NLTK识别结果:
- persons
- Xi Jinping
- gpes
- Chinese
- China
- Beijing
- persons
-
斯坦福ner识别结果:
- ORGANIZATION:
- Communist Party of China (CPC) Central Committee Central
- Military Commission
- LOCATION
- Beijing
- DATE
- Tuesday
- Wednesday
- ORGANIZATION:
-
Spacy识别结果:
- NORP:
- Chinese
- PERSON:
- Xi Jinping
- ORG:
- the Communist Party of China (CPC) Central Committee
- the Central Military Commission
- GPE:
- Beijing
- DATE:
- Tuesday and Wednesday
- NORP:
以短句结果足见识别各效果:Spacy 优于 Stanford 优于 NLTK