|
from huggingface_hub import hf_hub_download |
|
import json |
|
|
|
dataset_name_list = ['arithmetic_operation/context_arithmetic_operation.json', 'arithmetic_operation/arithmetic_operation.json', |
|
'mixed_number_sting/mixed_number_string_500_per_sample.json', |
|
'num_list/num_list_500_per_sample_1000_length.json', 'num_list/num_list_500_per_sample_100_length.json', |
|
'sequence/sequence_500_sample_100_length.json', |
|
'stock/single-turn/stock_500_per_sample_150_length.json', 'stock/single-turn/stock_500_per_sample_300_length.json', 'stock/multi-turn/stock_multi_turn_100_per_sample_100_length.json', |
|
'weather/single-turn/weather_500_per_sample_200_length.json', 'weather/single-turn/weather_500_per_sample_400_length.json', 'weather/multi-turn/weather_multi_turn_100_per_sample_100_length.json' |
|
] |
|
|
|
REPO_ID = "TreeAILab/NumericBench" |
|
|
|
for dataset_name in dataset_name_list: |
|
with open(hf_hub_download(repo_id=REPO_ID, filename=dataset_name, repo_type="dataset")) as f: |
|
dataset = json.load(f) |