Update medical_qa_ru_data.py
Browse files- medical_qa_ru_data.py +10 -9
medical_qa_ru_data.py
CHANGED
|
@@ -56,12 +56,13 @@ class MedicalQARuData(datasets.GeneratorBasedBuilder):
|
|
| 56 |
"""Yields examples."""
|
| 57 |
with open(filepath, encoding="utf-8") as f:
|
| 58 |
data = csv.reader(f)
|
| 59 |
-
for id_, row in enumerate(data
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
| 56 |
"""Yields examples."""
|
| 57 |
with open(filepath, encoding="utf-8") as f:
|
| 58 |
data = csv.reader(f)
|
| 59 |
+
for id_, row in enumerate(data):
|
| 60 |
+
if id_>0:
|
| 61 |
+
yield id_, {
|
| 62 |
+
"date": row[0],
|
| 63 |
+
"categ": row[1],
|
| 64 |
+
"theme": row[2],
|
| 65 |
+
"desc": row[3],
|
| 66 |
+
"ans": row[4],
|
| 67 |
+
"spec10": row[5],
|
| 68 |
+
}
|