WindChimeRan / pytorch_multi_head_selection_re

BERT + reproduce "Joint entity recognition and relation extraction as a multi-head selection problem" for Chinese and English IE
138 stars 32 forks source link

Relational matrix sparsity #18

Open Xie-Minghui opened 3 years ago

Xie-Minghui commented 3 years ago

relational matirx is very sparse in Chinese dataset. When I tested my implemention of multi_head_selection, the loss of relation was very small. Because most relations were 'N', the samples are unbalanced across categories. I tried some other methods to ease this problem, but failed. Therefore, I wonder whether you meet this problem too?