Datasets:
Update divemt.py
Browse files
divemt.py
CHANGED
|
@@ -142,7 +142,6 @@ class DivEMT(datasets.GeneratorBasedBuilder):
|
|
| 142 |
def _generate_examples(self, filepath: str, features):
|
| 143 |
"""Yields examples as (key, example) tuples."""
|
| 144 |
data = pd.read_csv(filepath, sep="\t")
|
| 145 |
-
data = data[_ALL_FIELDS]
|
| 146 |
for id_, row in data.iterrows():
|
| 147 |
row_dic = row.to_dict()
|
| 148 |
for field in _STR_SEQ_FIELDS + _LANG_ANNOTATIONS_FIELDS:
|
|
|
|
| 142 |
def _generate_examples(self, filepath: str, features):
|
| 143 |
"""Yields examples as (key, example) tuples."""
|
| 144 |
data = pd.read_csv(filepath, sep="\t")
|
|
|
|
| 145 |
for id_, row in data.iterrows():
|
| 146 |
row_dic = row.to_dict()
|
| 147 |
for field in _STR_SEQ_FIELDS + _LANG_ANNOTATIONS_FIELDS:
|