Update taiwanese_english_translation.py
Browse files
taiwanese_english_translation.py
CHANGED
@@ -156,7 +156,7 @@ class TaiwaneseEnglishTranslation(datasets.GeneratorBasedBuilder):
|
|
156 |
target_sentences.append(row[1])
|
157 |
source, target = self.config.language_pair
|
158 |
for idx, (l1, l2) in enumerate(zip(source_sentences, target_sentences)):
|
159 |
-
result = {"translation": {
|
160 |
# Make sure that both translations are non-empty.
|
161 |
if all(result.values()):
|
162 |
yield idx, result
|
|
|
156 |
target_sentences.append(row[1])
|
157 |
source, target = self.config.language_pair
|
158 |
for idx, (l1, l2) in enumerate(zip(source_sentences, target_sentences)):
|
159 |
+
result = {"translation": {source: l1, target: l2}}
|
160 |
# Make sure that both translations are non-empty.
|
161 |
if all(result.values()):
|
162 |
yield idx, result
|