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

Erroneous Code

Open LeoLai930603 opened this issue 5 years ago • 0 comments

I believe there are something wrong here. Even though I have never get into this if-clause during experiment.

https://github.com/codertimo/BERT-pytorch/blob/d10dc4f9d5a6f2ca74380f62039526eb7277c671/bert_pytorch/dataset/dataset.py#L17-L20

Are you trying to self-increase a NoneType? And I am wondering what the corpus_lines is for here, remembering the how many lines have been read or setting the maximum readable lines?

LeoLai930603 avatar Jun 10 '19 03:06 LeoLai930603