Skip to content

ghaddarAbs/NER-with-LS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robust Lexical Features for Improved Neural Network Named-Entity Recognition

This repository contains the source code for the NER system presented in the following research publication (link)

Abbas Ghaddar and Philippe Langlais 
Robust Lexical Features for Improved Neural Network Named-Entity Recognition
In Proceedings of the 27th International Conference on Computational Linguistics (COLING 2018)

Requirements

  • python 3.6
  • tensorflow>=1.6
  • pyhocon (for parsing the configurations)

Prepare the Data

  1. Download the data from here and unzip the files in data directory.

  2. Change the raw_path variables for conll and ontonotes datasets in experiments.config file to path/to/conll-2003 and path/to/conll-2012/v4/data respectively. For conll dataset please rename eng.train eng.testa eng.testb files to conll.train.txt conll.dev.txt conll.test.txt respectively.

  3. Run:

$ python preprocess.py {conll|ontonotes}

Training

Once the data preprocessing is completed, you can train and test a model with:

$ python model.py {conll|ontonotes}

Generate LS embeddings

The following link contains the model, entity type vocab and code to generate LS embeddings for any word.

Citation

Please cite the following paper when using our code:

@InProceedings{ghaddar2018coling,
  title={{Robust Lexical Features for Improved Neural Network Named-Entity Recognition}},
  author={Ghaddar, Abbas	and Langlais, Phillippe},
  booktitle = {{COLING} 2018, 27th International Conference on Computational Linguistics},
  pages     = {1896--1907},
  year      = {2018}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages