clovaai / bros

Apache License 2.0
155 stars 23 forks source link

Format of label & output in Relation Extraction task #15

Open khai9xht opened 2 years ago

khai9xht commented 2 years ago

Hi, thanks for the excellent work! In your repository, I see format of relation extraction label you save from dataset (link): el_labels = np.ones(self.max_seq_length, dtype=int) * self.max_seq_length el_labels[word_to] = word_from where el_labels[i] = jmeans words[j] link to words[i] and words[j] is question, words[i] is answer. In this way, one word (label is answer) can be only linked by one word (label is question) . What happen if there are many words (label is question) that have same connection to one word(label is answer). May it cause loss links (connections) ?