plkmo / BERT-Relation-Extraction

PyTorch implementation for "Matching the Blanks: Distributional Similarity for Relation Learning" paper
Apache License 2.0
565 stars 132 forks source link

Relation representation based on Bert(EM) and BERT(EM+MTB) #19

Closed VahidehRt closed 3 years ago

VahidehRt commented 4 years ago

Hi How could I access a relation representation based on BERT(EM) and BERT(EM+MTB) models?

plkmo commented 3 years ago

blanks_logits in the trainer.py for MTB is the representation after tanh activation