codertimo / BERT-pytorch

Google AI 2018 BERT pytorch implementation
Apache License 2.0
6.09k stars 1.29k forks source link

dataset / dataset.py have one erro? #93

Open ndn-love opened 2 years ago

ndn-love commented 2 years ago

"
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)。

Arya-bioinformatics commented 1 year ago

what do you mean by this?