Datasets:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- opus_rf.py +2 -2
opus_rf.py
CHANGED
|
@@ -79,7 +79,7 @@ class OpusRFTranslationsConfig(datasets.BuilderConfig):
|
|
| 79 |
|
| 80 |
|
| 81 |
class OpusRF(datasets.GeneratorBasedBuilder):
|
| 82 |
-
"""RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations.
|
| 83 |
|
| 84 |
BUILDER_CONFIGS = [
|
| 85 |
OpusRFTranslationsConfig(
|
|
@@ -118,7 +118,7 @@ class OpusRF(datasets.GeneratorBasedBuilder):
|
|
| 118 |
]
|
| 119 |
|
| 120 |
def _generate_examples(self, datapath):
|
| 121 |
-
"""
|
| 122 |
l1, l2 = self.config.lang1, self.config.lang2
|
| 123 |
folder = l1 + "-" + l2
|
| 124 |
l1_file = _BASE_NAME.format(folder, l1)
|
|
|
|
| 79 |
|
| 80 |
|
| 81 |
class OpusRF(datasets.GeneratorBasedBuilder):
|
| 82 |
+
"""RF is a tiny parallel corpus of the Declarations of the Swedish Government and its translations."""
|
| 83 |
|
| 84 |
BUILDER_CONFIGS = [
|
| 85 |
OpusRFTranslationsConfig(
|
|
|
|
| 118 |
]
|
| 119 |
|
| 120 |
def _generate_examples(self, datapath):
|
| 121 |
+
"""Yields examples."""
|
| 122 |
l1, l2 = self.config.lang1, self.config.lang2
|
| 123 |
folder = l1 + "-" + l2
|
| 124 |
l1_file = _BASE_NAME.format(folder, l1)
|