Initial Commit
Browse files- split-test.py +1 -1
split-test.py
CHANGED
|
@@ -145,7 +145,7 @@ class SplitTest(datasets.GeneratorBasedBuilder):
|
|
| 145 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 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(
|
| 149 |
|
| 150 |
with open(filepath, encoding="utf-8") as f:
|
| 151 |
for key, row in enumerate(f):
|
|
|
|
| 145 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 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):
|