atenglens commited on
Commit
c5f704f
1 Parent(s): dc68a48

Update taiwanese_english_translation.py

Browse files
Files changed (1) hide show
  1. taiwanese_english_translation.py +1 -1
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": {target: l2, source: l1}}
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