LxYxvv commited on
Commit
343f75f
·
verified ·
1 Parent(s): a67ef7c

Update olympiads-ref.py

Browse files

add resource_path to dataset schema and data

Files changed (1) hide show
  1. olympiads-ref.py +3 -1
olympiads-ref.py CHANGED
@@ -54,7 +54,8 @@ class OlympiadReferenceDataset(datasets.GeneratorBasedBuilder):
54
  "problem": datasets.Value("string"),
55
  "solution": datasets.Value("string"),
56
  "year": datasets.Value("int32"),
57
- "tier": datasets.Value("int32")
 
58
  }
59
  )
60
 
@@ -99,5 +100,6 @@ class OlympiadReferenceDataset(datasets.GeneratorBasedBuilder):
99
  "solution": data.get("solution"),
100
  "year": data.get("year"),
101
  "tier": data.get("tier"),
 
102
  }
103
  key += 1
 
54
  "problem": datasets.Value("string"),
55
  "solution": datasets.Value("string"),
56
  "year": datasets.Value("int32"),
57
+ "tier": datasets.Value("int32"),
58
+ "resource_path": datasets.Value("string")
59
  }
60
  )
61
 
 
100
  "solution": data.get("solution"),
101
  "year": data.get("year"),
102
  "tier": data.get("tier"),
103
+ "resource_path": file
104
  }
105
  key += 1