python main.py --mode=train
python main.py --mode=test --demo_model=1521112368
Please set the parameter --demo_model
to the model that you want to test. 1521112368
is the model trained by me.
An official evaluation tool for computing metrics: here (click 'Instructions')
My test performance:
P | R | F | F (PER) | F (LOC) | F (ORG) |
---|---|---|---|---|---|
0.8945 | 0.8752 | 0.8847 | 0.8688 | 0.9118 | 0.8515 |
python main.py --mode=demo --demo_model=1521112368
You can input one Chinese sentence and the model will return the recognition result:
[1] Bidirectional LSTM-CRF Models for Sequence Tagging
[2] Neural Architectures for Named Entity Recognition
[3] Character-Based LSTM-CRF with Radical-Level Features for Chinese Named Entity Recognition