Skip to content

Implementation of Position-aware Attention and Supervised Data Improve Slot Filling.

License

Notifications You must be signed in to change notification settings

onehaitao/PA-LSTM-relation-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PA-LSTM-relation-extraction

PWC

Implementation of Position-aware Attention and Supervised Data Improve Slot Filling.

Environment Requirements

  • python 3.6
  • pytorch 1.3.0

Data

Usage

  1. Purchase the dataset and move it in the data folder.
  2. Download the embedding and move it in the embedding folder. The download script is available in the embedding folder.
  3. Run the following the commands to start the program.
python run.py

More details can be seen by python run.py -h.

Result

The result of my version and that in paper are present as follows:

paper my version
0.651 0.6503

The training log can be seen in train.log.

Note:

  • Some settings are different from those mentioned in the paper.
  • If you cannot achieve the same result as mine, please check the version of Pytorch.
  • Some errors exists in my code, but on the whole it is right.

Reference Link

About

Implementation of Position-aware Attention and Supervised Data Improve Slot Filling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published