Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.25 KB

File metadata and controls

46 lines (30 loc) · 1.25 KB

FAT-RE

Background

This is a Transformer-based model with Filtering and Aggregation mechanisms for the task of Relation Extraction. Previous methods adopt tree pruning to keep free from the noisy words, which may hurt the semantic integrity. FAT-RE treats a sentence as a fully-connected graph, and let the model decide which connections are important.

Architecture

Prepare

  1. Dataset
    • TACRED
    • SemEval2010 Task8
  2. Word Embedding
    • Glove
    • Word2vec
    • BERT Embedding
  3. Prepare vocab
    • scripts/prepare_vocab.sh

Train & Test

Please check if the resourses are prepared and the paths/arguments are specified. Example is shown in scripts/train.sh

python main.py --xxx 
python eval.py --xxx

Result

Reference