lavis-nlp / spert

PyTorch code for SpERT: Span-based Entity and Relation Transformer
MIT License
692 stars 148 forks source link

Why use multiple sigmoids for relation classifier? #47

Closed syuoni closed 3 years ago

syuoni commented 3 years ago

Hi, May I ask why you use multiple sigmoids for relation classifier? Why not use a softmax layer as for the span classifier?

I have checked that there are no multiple relations between two given entities in all three datasets (only a very few duplicated relations in SciERC).

Best, Enwei

markus-eberts commented 3 years ago

Hi, this question was already answered in issue #10.