Datasets:
License:
Matīss
commited on
Commit
•
5ad06b2
1
Parent(s):
8fc1dc9
Upload liv4ever.py
Browse files- 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"
|
186 |
-
"et": "et"
|
187 |
-
"lv": "lv"
|
188 |
-
"fr": "fr"
|
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 |
}
|