Datasets:
Tasks:
Translation
Multilinguality:
translation
Size Categories:
1K<n<10K
Language Creators:
found
Source Datasets:
original
ArXiv:
Tags:
License:
Update divemt.py
Browse files
divemt.py
CHANGED
@@ -140,9 +140,10 @@ class DivEMT(datasets.GeneratorBasedBuilder):
|
|
140 |
)
|
141 |
]
|
142 |
|
143 |
-
def _generate_examples(self, filepath: str):
|
144 |
"""Yields examples as (key, example) tuples."""
|
145 |
data = pd.read_csv(filepath, sep="\t")
|
|
|
146 |
for id_, row in data.iterrows():
|
147 |
row_dic = row.to_dict()
|
148 |
for field in _STR_SEQ_FIELDS + _LANG_ANNOTATIONS_FIELDS:
|
|
|
140 |
)
|
141 |
]
|
142 |
|
143 |
+
def _generate_examples(self, filepath: str, features):
|
144 |
"""Yields examples as (key, example) tuples."""
|
145 |
data = pd.read_csv(filepath, sep="\t")
|
146 |
+
data = data[features]
|
147 |
for id_, row in data.iterrows():
|
148 |
row_dic = row.to_dict()
|
149 |
for field in _STR_SEQ_FIELDS + _LANG_ANNOTATIONS_FIELDS:
|