Skip to content
Chinese NER using Lattice LSTM. Code for ACL 2018 paper.
Python Shell
Branch: master
Clone or download
Latest commit 24d17f4 Apr 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
ResumeNER resume ner data May 29, 2018
model init version May 27, 2018
utils init version May 27, 2018 add google drive download Apr 25, 2019 Fix bug: map_location is a paramater of torch.load, not the load_stat… Jul 17, 2018 fix path bug and name misspelling in Jul 25, 2018 init version May 27, 2018

Chinese NER Using Lattice LSTM

Lattice LSTM for Chinese NER. Character based LSTM with Lattice embeddings as input.

Models and results can be found at our ACL 2018 paper Chinese NER Using Lattice LSTM. It achieves 93.18% F1-value on MSRA dataset, which is the state-of-the-art result on Chinese NER task.

Details will be updated soon.


Python: 2.7   
PyTorch: 0.3.0 

(for PyTorch 0.3.1, please refer issue#8 for a slight modification.)

Input format:

CoNLL format (prefer BIOES tag scheme), with each character its label for one line. Sentences are splited with a null line.

的	O

我	O
跟	O
他	O
谈	O
笑	O
风	O
生	O 

Pretrained Embeddings:

The pretrained character and word embeddings are the same with the embeddings in the baseline of RichWordSegmentor

Character embeddings (gigaword_chn.all.a2b.uni.ite50.vec): Google Drive or Baidu Pan

Word(Lattice) embeddings (ctb.50d.vec): Google Drive or Baidu Pan

How to run the code?

  1. Download the character embeddings and word embeddings and put them in the data folder.
  2. Modify the or by adding your train/dev/test file directory.
  3. sh or sh

Resume NER data

Crawled from the Sina Finance, it includes the resumes of senior executives from listed companies in the Chinese stock market. Details can be found in our paper.


Please cite our ACL 2018 paper:

 title={Chinese NER Using Lattice LSTM},  
 author={Yue Zhang and Jie Yang},  
 booktitle={Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL)},
You can’t perform that action at this time.