bert icon indicating copy to clipboard operation
bert copied to clipboard

why all the next_sentence_labels equal 1 with run create_pretraining_data.py?

Open zepen opened this issue 8 years ago • 2 comments

image image i understander wrong?

zepen avatar Nov 15 '18 11:11 zepen

"1" actually means "is random" because that's the convention I used originally. The problem is that there are blank lines between your input sentences so the system thinks that each its its own document, and next sentence can't cross documents. So just remove the empty line between segments in the same document.

jacobdevlin-google avatar Nov 15 '18 16:11 jacobdevlin-google

thanks a lot

zepen avatar Nov 16 '18 05:11 zepen