BERT-pytorch
BERT-pytorch copied to clipboard
dataset / dataset.py have one erro?
"
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)。
what do you mean by this?