Roman Solomatin
commited on
fix split
Browse files- results.py +4 -3
results.py
CHANGED
|
@@ -301,7 +301,8 @@ class MTEBResults(datasets.GeneratorBasedBuilder):
|
|
| 301 |
path_file = dl_manager.download_and_extract(URL)
|
| 302 |
# Local debugging:
|
| 303 |
#with open("/Users/muennighoff/Desktop/results/paths.json") as f:
|
| 304 |
-
with open(
|
|
|
|
| 305 |
files = json.load(f)
|
| 306 |
downloaded_files = dl_manager.download_and_extract(files[self.config.name])
|
| 307 |
return [
|
|
@@ -335,7 +336,7 @@ class MTEBResults(datasets.GeneratorBasedBuilder):
|
|
| 335 |
split = "test.full"
|
| 336 |
elif (ds_name in STANDARD_SPLIT) and ("standard" in res_dict):
|
| 337 |
split = "standard"
|
| 338 |
-
elif (ds_name in DEVTEST_SPLIT) and ("
|
| 339 |
split = "devtest"
|
| 340 |
elif (ds_name in TEST_AVG_SPLIT):
|
| 341 |
# Average splits
|
|
@@ -428,4 +429,4 @@ class MTEBResults(datasets.GeneratorBasedBuilder):
|
|
| 428 |
|
| 429 |
# NOTE: for generating the new paths
|
| 430 |
if __name__ == "__main__":
|
| 431 |
-
get_paths()
|
|
|
|
| 301 |
path_file = dl_manager.download_and_extract(URL)
|
| 302 |
# Local debugging:
|
| 303 |
#with open("/Users/muennighoff/Desktop/results/paths.json") as f:
|
| 304 |
+
with open("/home/samoed/Desktop/mteb/mteb-results/paths.json") as f:
|
| 305 |
+
# with open(path_file) as f:
|
| 306 |
files = json.load(f)
|
| 307 |
downloaded_files = dl_manager.download_and_extract(files[self.config.name])
|
| 308 |
return [
|
|
|
|
| 336 |
split = "test.full"
|
| 337 |
elif (ds_name in STANDARD_SPLIT) and ("standard" in res_dict):
|
| 338 |
split = "standard"
|
| 339 |
+
elif (ds_name in DEVTEST_SPLIT) and ("devtest" in res_dict):
|
| 340 |
split = "devtest"
|
| 341 |
elif (ds_name in TEST_AVG_SPLIT):
|
| 342 |
# Average splits
|
|
|
|
| 429 |
|
| 430 |
# NOTE: for generating the new paths
|
| 431 |
if __name__ == "__main__":
|
| 432 |
+
get_paths()
|