zjunlp / DocuNet

[IJCAI 2021] Document-level Relation Extraction as Semantic Segmentation
MIT License
132 stars 20 forks source link

Question about get_hrt #11

Closed bluseking closed 2 years ago

bluseking commented 2 years ago

I did not know why append the same e_att so many times in the entityatts
for
in range(self.min_height-entity_num-1): entity_atts.append(e_att)

Thanks for your help!

TimelordRi commented 2 years ago

Hi! The number of entities varys from instance to instance in a batch. An operation functioning as padding is therefore needed here to keep the data aligned in a batch.