rtmaww / SENT

codes for ACL2021 paper "SENT: Sentence-level Distant Relation Extraction via Negative Training"
29 stars 4 forks source link

filter_relabel #16

Open zh190920 opened 2 years ago

zh190920 commented 2 years ago

why do labels have to be reassigned to their original labels at each iteration in filter_relabel train_batch_data = self.train_dl.dataset for i in range(len(train_batch_data)): train_batch_data[i][-1][:] = self.ori_train_labels[i] self.train_dl = DataLoader(train_batch_data, batch_size=self.batch_size, sampler=SequentialSampler(train_batch_data))