James Briggs
commited on
Commit
·
c91c701
1
Parent(s):
bd70810
Dataset now reads all the tfrecord files
Browse files- wikipedia_bert_128.py +1 -2
wikipedia_bert_128.py
CHANGED
@@ -142,8 +142,7 @@ class WikipediaBERT128(datasets.GeneratorBasedBuilder):
|
|
142 |
'masked_lm_ids', # masked_lm_labels=None : label of masked tokens with padding as 0.
|
143 |
'next_sentence_labels' # next_sentence_label=None : 1 if next sentence, 0 otherwise
|
144 |
)
|
145 |
-
|
146 |
-
tfrecords = [Path(filepath)/"wiki_000.tfrecord"]
|
147 |
|
148 |
highest_id_ = -1
|
149 |
for rec in tfrecords:
|
|
|
142 |
'masked_lm_ids', # masked_lm_labels=None : label of masked tokens with padding as 0.
|
143 |
'next_sentence_labels' # next_sentence_label=None : 1 if next sentence, 0 otherwise
|
144 |
)
|
145 |
+
tfrecords = Path(filepath).glob("*.tfrecord")
|
|
|
146 |
|
147 |
highest_id_ = -1
|
148 |
for rec in tfrecords:
|