dataset / dataset.py have one erro?
Author: ndn-loveCreated Aug 22, 2021Updated May 15, 2023
"
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)。
Source: codertimo/BERT-pytorch