EthanPhan / R-BERT

Implementation of R-BERT (Wu et al. 2019) model from the paper 'Enriching Pre-trained Language Model with Entity Information for Relation Classification'
5 stars 4 forks source link

how to load bert model #2

Open anyongli opened 5 years ago

anyongli commented 5 years ago

hello, i cannot access "https://tfhub.dev/google/bert_uncased_L-12_H-768_A-12/1". I download the zip file "uncased_L-12_H-768_A-12.zip", but don't know how to load it. I would appreciate some suggestions. Thank you

Ywandung-Lyou commented 4 years ago

Unzip it and change BERT_MODEL_HUB to its dir.

songhanyu commented 4 years ago

The relationships are divided into 10 categories, but the SemEval official F1 score is 19 relationships taking directionality into account.And I try to use the official evaluation, the result with this code is 78.43%.If you know what influenced the result,please tell me.Thank you for sharing the code!