Update files from the datasets library (from 1.6.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.0
- ted_multi.py +1 -4
ted_multi.py
CHANGED
|
@@ -15,13 +15,10 @@
|
|
| 15 |
|
| 16 |
# Lint as: python3
|
| 17 |
"""TED talk multilingual data set."""
|
| 18 |
-
from __future__ import absolute_import, division, print_function
|
| 19 |
|
| 20 |
import csv
|
| 21 |
import os
|
| 22 |
|
| 23 |
-
import six
|
| 24 |
-
|
| 25 |
import datasets
|
| 26 |
|
| 27 |
|
|
@@ -162,7 +159,7 @@ class TedMultiTranslate(datasets.GeneratorBasedBuilder):
|
|
| 162 |
yield idx, {
|
| 163 |
"translations": {
|
| 164 |
lang: text
|
| 165 |
-
for lang, text in
|
| 166 |
if lang != "talk_name" and _is_translation_complete(text)
|
| 167 |
},
|
| 168 |
"talk_name": row["talk_name"],
|
|
|
|
| 15 |
|
| 16 |
# Lint as: python3
|
| 17 |
"""TED talk multilingual data set."""
|
|
|
|
| 18 |
|
| 19 |
import csv
|
| 20 |
import os
|
| 21 |
|
|
|
|
|
|
|
| 22 |
import datasets
|
| 23 |
|
| 24 |
|
|
|
|
| 159 |
yield idx, {
|
| 160 |
"translations": {
|
| 161 |
lang: text
|
| 162 |
+
for lang, text in row.items()
|
| 163 |
if lang != "talk_name" and _is_translation_complete(text)
|
| 164 |
},
|
| 165 |
"talk_name": row["talk_name"],
|