Skip to content
/ REDN Public
forked from slczgwh/REDN

Downstream Model Design of Pre-trained Language Model for Relation Extraction Task

License

Notifications You must be signed in to change notification settings

bobkentt/REDN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PWC PWC PWC

REDN

This is the prototype code for Relation Extraction Downstream Network of pre-trained language model, supporting our paper Downstream Model Design of Pre-trained Language Model for Relation Extraction Task.

Part of this code are revised based on OPENNRE.

Datasets

You can get Datasets from OPENNRE and WebNLG 2.0

Getting Start

Set your own paths in example/configs.py, including pre-trained model path, root path of data and output name. Run example/redn_trainer.py with args dataset and mode. dataset can be nyt10, semeval or webnlg. mode can be t for training and e for evaluation. For example ,to train SemEval, try

python redn_trainer semeval t

Logs

If you are not able to run these codes, you can also check all the logs in ./logs.

About

Downstream Model Design of Pre-trained Language Model for Relation Extraction Task

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%