A TensorFlow Implementation of Naive Relation Extraction under SemEval-2010 Task 8 (without entity specified)
- Python3
- TensorFlow >= 1.14
- Flair
We use Flair as pre-trained embedding
- Data Processing
python -m main_data-processing --emb=[glove, bert]
- Train
python -m main_relation-extraction --emb=[glove, bert]
Embedding | Training Loss | Validation Accuracy | Testing Accuracy |
---|---|---|---|
GloVe | 1.3609 | 53.37% | 56.815% |
BERT | 0.4248 | 69.12% | 69.519% |