Andreas Sünder
commited on
Commit
·
d65ef5f
1
Parent(s):
e155780
Fix substring checking syntax error
Browse files- simplebooks.py +1 -1
simplebooks.py
CHANGED
|
@@ -115,7 +115,7 @@ class SimpleBooks(datasets.GeneratorBasedBuilder):
|
|
| 115 |
def _generate_examples(self, subset, split, files):
|
| 116 |
_id = 0
|
| 117 |
for path, file in files:
|
| 118 |
-
if
|
| 119 |
for line in file:
|
| 120 |
yield _id, {"text": line.strip()}
|
| 121 |
_id += 1
|
|
|
|
| 115 |
def _generate_examples(self, subset, split, files):
|
| 116 |
_id = 0
|
| 117 |
for path, file in files:
|
| 118 |
+
if subset in path and split in path:
|
| 119 |
for line in file:
|
| 120 |
yield _id, {"text": line.strip()}
|
| 121 |
_id += 1
|