Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- autshumato.py +2 -2
autshumato.py
CHANGED
|
@@ -39,7 +39,7 @@ project is to develop machine translation systems for three South African langua
|
|
| 39 |
|
| 40 |
|
| 41 |
class AutshumatoConfig(datasets.BuilderConfig):
|
| 42 |
-
"""
|
| 43 |
|
| 44 |
def __init__(self, langs, zip_file, **kwargs):
|
| 45 |
"""
|
|
@@ -206,7 +206,7 @@ class Autshumato(datasets.GeneratorBasedBuilder):
|
|
| 206 |
]
|
| 207 |
|
| 208 |
def _generate_examples(self, source_files, target_files, split):
|
| 209 |
-
"""
|
| 210 |
if len(self.config.langs) == 2:
|
| 211 |
return self._generate_examples_translation(source_files, target_files, split)
|
| 212 |
elif len(self.config.langs) == 1:
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
class AutshumatoConfig(datasets.BuilderConfig):
|
| 42 |
+
"""BuilderConfig for NewDataset"""
|
| 43 |
|
| 44 |
def __init__(self, langs, zip_file, **kwargs):
|
| 45 |
"""
|
|
|
|
| 206 |
]
|
| 207 |
|
| 208 |
def _generate_examples(self, source_files, target_files, split):
|
| 209 |
+
"""Yields examples."""
|
| 210 |
if len(self.config.langs) == 2:
|
| 211 |
return self._generate_examples_translation(source_files, target_files, split)
|
| 212 |
elif len(self.config.langs) == 1:
|