blinoff commited on
Commit
2a3a132
1 Parent(s): 331797b

Update medical_qa_ru_data.py

Browse files
Files changed (1) hide show
  1. 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[1:]):
60
- yield id_, {
61
- "date": row[0],
62
- "categ": row[1],
63
- "theme": row[2],
64
- "desc": row[3],
65
- "ans": row[4],
66
- "spec10": row[5],
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
+ }