Skip to content

This project implements the Chinese nested named entity recognition task using the LatticeLSTM model.

Notifications You must be signed in to change notification settings

hualaobisi/LatticeLSTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LatticeLSTM

It is the implemation of the paper Chinese NER Using Lattice LSTM with pyTorch 1.8.1.

Environment

  • python 3.8.1
  • pytorch==1.8.1

Dataset

It is ResumeNER data, if you want to use your own dataset, the data need to be CoNLL format (prefer BIOES tag scheme), with each character its label for one line. Sentences are splited with a null line.

美	B-LOC
国	E-LOC
的	O
华	B-PER
莱	I-PER
士	E-PER

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

Quick Start:

  1. Clone this code repository to your local machine:
$ git clone https://github.com/hualaobisi/LatticeLSTM.git
  1. Install the required dependencies

  2. Download the pretrained character and word embeddings and put them into the models directory(It is already done).

  3. Run the training program:

$ bash run_train.sh
  1. Run the predicting program:
$ bash run_predict.sh

About

This project implements the Chinese nested named entity recognition task using the LatticeLSTM model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published