BERT-pytorch icon indicating copy to clipboard operation
BERT-pytorch copied to clipboard

dataset / dataset.py have one erro?

Open ndn-love opened this issue 4 years ago • 1 comments

"
def get_random_line(self): if self.on_memory: self.lines[random.randrange(len(self.lines))][1] " This code is to get the incorrect next sentence(isNotNext : 0), maybe it random get a lines it is (isnext:1)。

ndn-love avatar Aug 22 '21 09:08 ndn-love

what do you mean by this?

Arya-bioinformatics avatar May 15 '23 13:05 Arya-bioinformatics