Skip to content

mxhofer/Named-Entity-Recognition-BidirectionalLSTM-CNN-CoNLL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Named-Entity-Recognition-BLSTM-CNN-CoNLL

Keras implementation of the Bidirectional LSTM and CNN model similar to Chiu and Nichols (2016) for CoNLL 2003 news data. Paper: https://arxiv.org/abs/1811.05468

The implementation differs from the original paper in these ways:

  1. no lexicons
  2. Nadam optimizer used instead of SGD
  3. Parameters: LSTM cell size of 200 (vs 275), dropout of 0.5 (vs 0.68)

Here is the corresponding Medium post with more details: https://medium.com/@maxhofer/deep-learning-for-named-entity-recognition-2-implementing-the-state-of-the-art-bidirectional-lstm-4603491087f1

Code adapted from: https://github.com/kamalkraj/Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs

Result

The implementation achieves a test F1 score of ~86 with 30 epochs. Increase the number of epochs to 80 reach an F1 over 90. The score produced in Chiu and Nichols (2016) is 91.62.

Dataset

CoNLL-2003 newswire articles: https://www.clips.uantwerpen.be/conll2003/ner/

GloVe vector representation from Jeffrey Pennington, Richard Socher, and Christopher D. Manning. 2014. See https://nlp.stanford.edu/projects/glove/

Dependencies

1) numpy 1.15.4
2) Keras 2.1.6
3) Tensorflow 1.8.0
4) Stanford GloVE embeddings

About

Keras implementation of "Few-shot Learning for Named Entity Recognition in Medical Text"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published