Matīss commited on
Commit
5ad06b2
1 Parent(s): 8fc1dc9

Upload liv4ever.py

Browse files
Files changed (1) hide show
  1. liv4ever.py +4 -4
liv4ever.py CHANGED
@@ -182,8 +182,8 @@ class liv4ever(datasets.GeneratorBasedBuilder):
182
  yield n, {
183
  "source": source["source"],
184
  "liv": sentence["liv"],
185
- "en": "en" in sentence and sentence["en"] or "",
186
- "et": "et" in sentence and sentence["et"] or "",
187
- "lv": "lv" in sentence and sentence["lv"] or "",
188
- "fr": "fr" in sentence and sentence["fr"] or "",
189
  }
 
182
  yield n, {
183
  "source": source["source"],
184
  "liv": sentence["liv"],
185
+ "en": sentence["en"] if "en" in sentence else "",
186
+ "et": sentence["et"] if "et" in sentence else "",
187
+ "lv": sentence["lv"] if "lv" in sentence else "",
188
+ "fr": sentence["fr"] if "fr" in sentence else "",
189
  }