A simple implementation of BiLSTM-CRF for NER in PyTorch.
PyTorch 1.0 、python 3.7
English: CONLL2003 dataset paper
This model uses following 'BIO' tag system, that is, ['B-ORG', 'O', 'B-MISC', 'I-ORG', 'B-LOC', 'B-PER', 'I-PER', 'I-MISC', 'I-LOC'].
ORG: organization
MISC: miscellaneous entities
PER: person
LOC: location
enter python demo.py
to run the demo code.
enter python main.py
to train a model from scratch.
enter python main.py -c 37_0_054__885.pth.tar
to train from the checkpoint "./pretrained_model/37_0_054__885.pth.tar".
F-value: 0.8922
Loss value decreases to 0.058.
Neural Architectures for Named Entity Recognition
Guillaume Lample Miguel Ballesteros| Sandeep Subramanian Kazuya Kawakami Chris Dyer