Initial Commit
Browse files- split-test.py +1 -2
split-test.py
CHANGED
|
@@ -146,8 +146,7 @@ class SplitTest(datasets.GeneratorBasedBuilder):
|
|
| 146 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 147 |
|
| 148 |
file_path = os.path.join(filepath, "text." + _LANGS[self.config.name])
|
| 149 |
-
|
| 150 |
-
with open(filepath, encoding="utf-8") as f:
|
| 151 |
for key, row in enumerate(f):
|
| 152 |
data = json.loads(row)
|
| 153 |
yield key, {
|
|
|
|
| 146 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 147 |
|
| 148 |
file_path = os.path.join(filepath, "text." + _LANGS[self.config.name])
|
| 149 |
+
with open(file_path, encoding="utf-8") as f:
|
|
|
|
| 150 |
for key, row in enumerate(f):
|
| 151 |
data = json.loads(row)
|
| 152 |
yield key, {
|