Datasets:
Gresham
commited on
Commit
·
bdb22ae
1
Parent(s):
3d5749f
docs(readme): update
Browse files- README.md +3 -4
- example.py +3 -4
README.md
CHANGED
@@ -45,7 +45,7 @@ Arxiv Paper: https://arxiv.org/abs/2502.11075
|
|
45 |
|
46 |
``` python
|
47 |
from huggingface_hub import hf_hub_download
|
48 |
-
import
|
49 |
|
50 |
dataset_name_list = ['arithmetic_operation/context_arithmetic_operation.json', 'arithmetic_operation/arithmetic_operation.json',
|
51 |
'mixed_number_sting/mixed_number_string_500_per_sample.json',
|
@@ -58,9 +58,8 @@ dataset_name_list = ['arithmetic_operation/context_arithmetic_operation.json', '
|
|
58 |
REPO_ID = "TreeAILab/NumericBench"
|
59 |
|
60 |
for dataset_name in dataset_name_list:
|
61 |
-
|
62 |
-
|
63 |
-
)
|
64 |
```
|
65 |
|
66 |
Alternatively, you can download the dataset from [this link](https://zenodo.org/records/14875784?token=eyJhbGciOiJIUzUxMiJ9.eyJpZCI6IjZhYjZlYzYwLWZkMTgtNGU1Ni1iM2I2LWUwNWVlMGIwZmYwZCIsImRhdGEiOnt9LCJyYW5kb20iOiIwNzQxNmU0NWY5ZDkxMzQ4ODVmYjdlZDgyOGJmNjVhYSJ9.m-_8Owb3TohJ76cGt2Mu4wrpsxMgC4E_aJG7Q07KHOTlKaxB4kipMY3eBZPaQEIkOv_iJEkRmlvZr23rLkTMBw).
|
|
|
45 |
|
46 |
``` python
|
47 |
from huggingface_hub import hf_hub_download
|
48 |
+
import json
|
49 |
|
50 |
dataset_name_list = ['arithmetic_operation/context_arithmetic_operation.json', 'arithmetic_operation/arithmetic_operation.json',
|
51 |
'mixed_number_sting/mixed_number_string_500_per_sample.json',
|
|
|
58 |
REPO_ID = "TreeAILab/NumericBench"
|
59 |
|
60 |
for dataset_name in dataset_name_list:
|
61 |
+
with open(hf_hub_download(repo_id=REPO_ID, filename=dataset_name, repo_type="dataset")) as f:
|
62 |
+
dataset = json.load(f)
|
|
|
63 |
```
|
64 |
|
65 |
Alternatively, you can download the dataset from [this link](https://zenodo.org/records/14875784?token=eyJhbGciOiJIUzUxMiJ9.eyJpZCI6IjZhYjZlYzYwLWZkMTgtNGU1Ni1iM2I2LWUwNWVlMGIwZmYwZCIsImRhdGEiOnt9LCJyYW5kb20iOiIwNzQxNmU0NWY5ZDkxMzQ4ODVmYjdlZDgyOGJmNjVhYSJ9.m-_8Owb3TohJ76cGt2Mu4wrpsxMgC4E_aJG7Q07KHOTlKaxB4kipMY3eBZPaQEIkOv_iJEkRmlvZr23rLkTMBw).
|
example.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from huggingface_hub import hf_hub_download
|
2 |
-
import
|
3 |
|
4 |
dataset_name_list = ['arithmetic_operation/context_arithmetic_operation.json', 'arithmetic_operation/arithmetic_operation.json',
|
5 |
'mixed_number_sting/mixed_number_string_500_per_sample.json',
|
@@ -12,6 +12,5 @@ dataset_name_list = ['arithmetic_operation/context_arithmetic_operation.json', '
|
|
12 |
REPO_ID = "TreeAILab/NumericBench"
|
13 |
|
14 |
for dataset_name in dataset_name_list:
|
15 |
-
|
16 |
-
|
17 |
-
)
|
|
|
1 |
from huggingface_hub import hf_hub_download
|
2 |
+
import json
|
3 |
|
4 |
dataset_name_list = ['arithmetic_operation/context_arithmetic_operation.json', 'arithmetic_operation/arithmetic_operation.json',
|
5 |
'mixed_number_sting/mixed_number_string_500_per_sample.json',
|
|
|
12 |
REPO_ID = "TreeAILab/NumericBench"
|
13 |
|
14 |
for dataset_name in dataset_name_list:
|
15 |
+
with open(hf_hub_download(repo_id=REPO_ID, filename=dataset_name, repo_type="dataset")) as f:
|
16 |
+
dataset = json.load(f)
|
|