- wiki_sentences.py +1 -2
wiki_sentences.py
CHANGED
|
@@ -39,8 +39,7 @@ class WikiSentences(datasets.GeneratorBasedBuilder):
|
|
| 39 |
def _generate_examples(self, filepath):
|
| 40 |
with open(filepath, encoding="utf-8") as txt_file:
|
| 41 |
for i, line in enumerate(txt_file):
|
| 42 |
-
|
| 43 |
-
pdb.set_trace()
|
| 44 |
line = line.strip()
|
| 45 |
if line and len(line) <= 64:
|
| 46 |
yield i, {"text": line}
|
|
|
|
| 39 |
def _generate_examples(self, filepath):
|
| 40 |
with open(filepath, encoding="utf-8") as txt_file:
|
| 41 |
for i, line in enumerate(txt_file):
|
| 42 |
+
print('line:', line)
|
|
|
|
| 43 |
line = line.strip()
|
| 44 |
if line and len(line) <= 64:
|
| 45 |
yield i, {"text": line}
|