SENet-for-Weakly-Supervised-Relation-Extraction
SENet-for-Weakly-Supervised-Relation-Extraction copied to clipboard
This is the implementation of my paper: SENet for Weakly-Supervised Relation Extraction (CSAI 2018)
Click here for pdf draft: paper_draft
Accepted link: // todo
How to train?
- unzip zipfile in data/ (the dataset is too large that you'd better download from here: https://github.com/darrenyaoyao/ResCNN_RelationExtraction/tree/master/data )
- in cmd:
python3 train.py
and test result will be saved to temp/ in format of pkl file
How to eval?
python3 eval.py
How to plot and compare with other models?
you need to fill in the pkl file path in plot script, and run
cd plot/
python3 plot_compare_with_other_model.py
python3 metric.py
Model structure
Best result(epoch ~= 170)
Prerequisits
- Tensorflow-gpu==1.4.0
- sklearn, tflearn, nltk, numpy
- Python3
Other models for RE and some helpful repos
About me
Master candidate from PRIS, BUPT.
Email: [email protected]