Skip to content

hi-bingo/NER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chinese Name Entity Recognition

Use Bi-LSTM and CRF

Requirements

  • keras
  • keras_contrib
  • numpy
  • sklearn
  • sklearn_crfsuite

Usage

Prepare data

Process data

python main.py -m preprocess

Train data

python main.py -m train

Evaluate

python main.py -m eval

Show NER demo

In this mode, you can input one sentence from command line, then the program ouput all entities.

python main.py -m demo

Result

precision recall f1-score
B-LOC 0.935 0.896 0.915
I-LOC 0.929 0.878 0.903
B-ORG 0.870 0.834 0.852
I-ORG 0.905 0.887 0.896
B-PER 0.917 0.791 0.849
I-PER 0.898 0.842 0.869
avg 0.912 0.865 0.887

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages