This is an implementation of paper Relation Classification via Convolutional Deep Neural Network in PyTorch
- Python 3.*
- PyTorch 0.3.*
- fire 0.1.2
The experiment data is SemEval-2010 task8 data, and is available at link
Data preprocess
python process.py --in_filename=ARGS --out_filename=ARGS
Training
python cnn_train.py --KEY=VALUE
Accuracy 67.84%
parameters fine-tune, so as to improve the accuracy