Skip to content

tsujuifu/tensorflow_relation-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tensorflow_relation-extraction

A TensorFlow Implementation of Naive Relation Extraction under SemEval-2010 Task 8 (without entity specified)

Requirements

  • Python3
  • TensorFlow >= 1.14
  • Flair

Usage

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]

Result

Embedding Training Loss Validation Accuracy Testing Accuracy
GloVe 1.3609 53.37% 56.815%
BERT 0.4248 69.12% 69.519%

Resources

About

A TensorFlow Implementation of Naive Relation Extraction

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages