Add files using upload-large-folder tool
Browse files- __init__.py +0 -0
- csv-0/0.csv +4 -0
- csv-0/0.html +22 -0
- csv-0/0.tsv +4 -0
- csv-0/1.csv +9 -0
- csv-0/1.html +42 -0
- csv-0/1.tsv +9 -0
- csv-0/10.csv +6 -0
- csv-0/10.html +36 -0
- csv-0/10.tsv +6 -0
- csv-0/100.csv +5 -0
- csv-0/100.html +26 -0
- csv-0/100.tsv +5 -0
- csv-0/1000.csv +5 -0
- csv-0/1000.html +26 -0
- csv-0/1000.tsv +5 -0
- csv-0/1001.csv +3 -0
- csv-0/1001.html +21 -0
- csv-0/1001.tsv +3 -0
- csv-0/1002.csv +5 -0
- csv-0/1002.html +26 -0
- csv-0/1002.tsv +5 -0
- csv-0/1003.csv +6 -0
- csv-0/1003.html +30 -0
- csv-0/1003.tsv +6 -0
- csv-0/1004.csv +5 -0
- csv-0/1004.html +26 -0
- csv-0/1004.tsv +5 -0
- csv-0/1005.csv +8 -0
- csv-0/1005.html +38 -0
- csv-0/1005.tsv +8 -0
- csv-0/1006.csv +6 -0
- csv-0/1006.html +30 -0
- csv-0/1006.tsv +6 -0
- csv-0/1007.csv +7 -0
- csv-0/1007.html +34 -0
- csv-0/1007.tsv +7 -0
- csv-0/1008.csv +8 -0
- csv-0/1008.html +38 -0
- csv-0/1008.tsv +8 -0
- csv-0/1009.csv +5 -0
- csv-0/1009.html +31 -0
- csv-0/1009.tsv +5 -0
- csv-0/101.csv +4 -0
- csv-0/101.html +22 -0
- csv-0/101.tsv +4 -0
- csv-0/1010.csv +7 -0
- csv-0/1010.html +34 -0
- csv-0/1010.tsv +7 -0
- dataset.py +83 -0
__init__.py
ADDED
|
File without changes
|
csv-0/0.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day,Number of cookies
|
| 2 |
+
Friday,163
|
| 3 |
+
Saturday,281
|
| 4 |
+
Sunday,263
|
csv-0/0.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Day</th>
|
| 5 |
+
<th>Number of cookies</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>Friday</td>
|
| 11 |
+
<td>163</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>Saturday</td>
|
| 15 |
+
<td>281</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>Sunday</td>
|
| 19 |
+
<td>263</td>
|
| 20 |
+
</tr>
|
| 21 |
+
</tbody>
|
| 22 |
+
</table>
|
csv-0/0.tsv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day Number of cookies
|
| 2 |
+
Friday 163
|
| 3 |
+
Saturday 281
|
| 4 |
+
Sunday 263
|
csv-0/1.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name,Number of coins
|
| 2 |
+
Braden,76
|
| 3 |
+
Camilla,94
|
| 4 |
+
Rick,86
|
| 5 |
+
Mary,84
|
| 6 |
+
Hector,80
|
| 7 |
+
Devin,83
|
| 8 |
+
Emily,82
|
| 9 |
+
Avery,87
|
csv-0/1.html
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Name</th>
|
| 5 |
+
<th>Number of coins</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>Braden</td>
|
| 11 |
+
<td>76</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>Camilla</td>
|
| 15 |
+
<td>94</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>Rick</td>
|
| 19 |
+
<td>86</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>Mary</td>
|
| 23 |
+
<td>84</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>Hector</td>
|
| 27 |
+
<td>80</td>
|
| 28 |
+
</tr>
|
| 29 |
+
<tr>
|
| 30 |
+
<td>Devin</td>
|
| 31 |
+
<td>83</td>
|
| 32 |
+
</tr>
|
| 33 |
+
<tr>
|
| 34 |
+
<td>Emily</td>
|
| 35 |
+
<td>82</td>
|
| 36 |
+
</tr>
|
| 37 |
+
<tr>
|
| 38 |
+
<td>Avery</td>
|
| 39 |
+
<td>87</td>
|
| 40 |
+
</tr>
|
| 41 |
+
</tbody>
|
| 42 |
+
</table>
|
csv-0/1.tsv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name Number of coins
|
| 2 |
+
Braden 76
|
| 3 |
+
Camilla 94
|
| 4 |
+
Rick 86
|
| 5 |
+
Mary 84
|
| 6 |
+
Hector 80
|
| 7 |
+
Devin 83
|
| 8 |
+
Emily 82
|
| 9 |
+
Avery 87
|
csv-0/10.csv
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Event,Begin,End
|
| 2 |
+
speed skating,11:20 A.M.,4:55 P.M.
|
| 3 |
+
cross-country skiing,4:35 P.M.,6:35 P.M.
|
| 4 |
+
downhill skiing,5:40 P.M.,6:50 P.M.
|
| 5 |
+
luge,6:05 P.M.,8:15 P.M.
|
| 6 |
+
snowboarding,7:25 P.M.,9:30 P.M.
|
csv-0/10.html
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Event</th>
|
| 5 |
+
<th>Begin</th>
|
| 6 |
+
<th>End</th>
|
| 7 |
+
</tr>
|
| 8 |
+
</thead>
|
| 9 |
+
<tbody>
|
| 10 |
+
<tr>
|
| 11 |
+
<td>speed skating</td>
|
| 12 |
+
<td>11:20 A.M.</td>
|
| 13 |
+
<td>4:55 P.M.</td>
|
| 14 |
+
</tr>
|
| 15 |
+
<tr>
|
| 16 |
+
<td>cross-country skiing</td>
|
| 17 |
+
<td>4:35 P.M.</td>
|
| 18 |
+
<td>6:35 P.M.</td>
|
| 19 |
+
</tr>
|
| 20 |
+
<tr>
|
| 21 |
+
<td>downhill skiing</td>
|
| 22 |
+
<td>5:40 P.M.</td>
|
| 23 |
+
<td>6:50 P.M.</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>luge</td>
|
| 27 |
+
<td>6:05 P.M.</td>
|
| 28 |
+
<td>8:15 P.M.</td>
|
| 29 |
+
</tr>
|
| 30 |
+
<tr>
|
| 31 |
+
<td>snowboarding</td>
|
| 32 |
+
<td>7:25 P.M.</td>
|
| 33 |
+
<td>9:30 P.M.</td>
|
| 34 |
+
</tr>
|
| 35 |
+
</tbody>
|
| 36 |
+
</table>
|
csv-0/10.tsv
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Event Begin End
|
| 2 |
+
speed skating 11:20 A.M. 4:55 P.M.
|
| 3 |
+
cross-country skiing 4:35 P.M. 6:35 P.M.
|
| 4 |
+
downhill skiing 5:40 P.M. 6:50 P.M.
|
| 5 |
+
luge 6:05 P.M. 8:15 P.M.
|
| 6 |
+
snowboarding 7:25 P.M. 9:30 P.M.
|
csv-0/100.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Column 1,Column 2
|
| 2 |
+
box of markers,$3.26
|
| 3 |
+
eraser,$1.09
|
| 4 |
+
rubber stamp,$2.62
|
| 5 |
+
box of paper clips,$1.00
|
csv-0/100.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Column 1</th>
|
| 5 |
+
<th>Column 2</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>box of markers</td>
|
| 11 |
+
<td>$3.26</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>eraser</td>
|
| 15 |
+
<td>$1.09</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>rubber stamp</td>
|
| 19 |
+
<td>$2.62</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>box of paper clips</td>
|
| 23 |
+
<td>$1.00</td>
|
| 24 |
+
</tr>
|
| 25 |
+
</tbody>
|
| 26 |
+
</table>
|
csv-0/100.tsv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Column 1 Column 2
|
| 2 |
+
box of markers $3.26
|
| 3 |
+
eraser $1.09
|
| 4 |
+
rubber stamp $2.62
|
| 5 |
+
box of paper clips $1.00
|
csv-0/1000.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day,Number of cups
|
| 2 |
+
Sunday,67
|
| 3 |
+
Monday,61
|
| 4 |
+
Tuesday,69
|
| 5 |
+
Wednesday,65
|
csv-0/1000.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Day</th>
|
| 5 |
+
<th>Number of cups</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>Sunday</td>
|
| 11 |
+
<td>67</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>Monday</td>
|
| 15 |
+
<td>61</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>Tuesday</td>
|
| 19 |
+
<td>69</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>Wednesday</td>
|
| 23 |
+
<td>65</td>
|
| 24 |
+
</tr>
|
| 25 |
+
</tbody>
|
| 26 |
+
</table>
|
csv-0/1000.tsv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day Number of cups
|
| 2 |
+
Sunday 67
|
| 3 |
+
Monday 61
|
| 4 |
+
Tuesday 69
|
| 5 |
+
Wednesday 65
|
csv-0/1001.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,Organic,Non-organic
|
| 2 |
+
Apples,1,5
|
| 3 |
+
Peaches,4,1
|
csv-0/1001.html
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th></th>
|
| 5 |
+
<th>Organic</th>
|
| 6 |
+
<th>Non-organic</th>
|
| 7 |
+
</tr>
|
| 8 |
+
</thead>
|
| 9 |
+
<tbody>
|
| 10 |
+
<tr>
|
| 11 |
+
<td>Apples</td>
|
| 12 |
+
<td>1</td>
|
| 13 |
+
<td>5</td>
|
| 14 |
+
</tr>
|
| 15 |
+
<tr>
|
| 16 |
+
<td>Peaches</td>
|
| 17 |
+
<td>4</td>
|
| 18 |
+
<td>1</td>
|
| 19 |
+
</tr>
|
| 20 |
+
</tbody>
|
| 21 |
+
</table>
|
csv-0/1001.tsv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Organic Non-organic
|
| 2 |
+
Apples 1 5
|
| 3 |
+
Peaches 4 1
|
csv-0/1002.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Stem,Leaf
|
| 2 |
+
5,"4, 9, 9"
|
| 3 |
+
6,"6, 7, 8"
|
| 4 |
+
7,"1, 2, 5, 8"
|
| 5 |
+
8,"3, 3, 4, 5, 6, 7, 7, 9, 9, 9"
|
csv-0/1002.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Stem</th>
|
| 5 |
+
<th>Leaf</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>5</td>
|
| 11 |
+
<td>4, 9, 9</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>6</td>
|
| 15 |
+
<td>6, 7, 8</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>7</td>
|
| 19 |
+
<td>1, 2, 5, 8</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>8</td>
|
| 23 |
+
<td>3, 3, 4, 5, 6, 7, 7, 9, 9, 9</td>
|
| 24 |
+
</tr>
|
| 25 |
+
</tbody>
|
| 26 |
+
</table>
|
csv-0/1002.tsv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Stem Leaf
|
| 2 |
+
5 4, 9, 9
|
| 3 |
+
6 6, 7, 8
|
| 4 |
+
7 1, 2, 5, 8
|
| 5 |
+
8 3, 3, 4, 5, 6, 7, 7, 9, 9, 9
|
csv-0/1003.csv
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Column 1,Column 2
|
| 2 |
+
sand castle magnet,$0.97
|
| 3 |
+
pink flamingo pen,$0.12
|
| 4 |
+
picture of a shark,$0.54
|
| 5 |
+
beach postcard,$0.61
|
| 6 |
+
whale keychain,$0.81
|
csv-0/1003.html
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Column 1</th>
|
| 5 |
+
<th>Column 2</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>sand castle magnet</td>
|
| 11 |
+
<td>$0.97</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>pink flamingo pen</td>
|
| 15 |
+
<td>$0.12</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>picture of a shark</td>
|
| 19 |
+
<td>$0.54</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>beach postcard</td>
|
| 23 |
+
<td>$0.61</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>whale keychain</td>
|
| 27 |
+
<td>$0.81</td>
|
| 28 |
+
</tr>
|
| 29 |
+
</tbody>
|
| 30 |
+
</table>
|
csv-0/1003.tsv
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Column 1 Column 2
|
| 2 |
+
sand castle magnet $0.97
|
| 3 |
+
pink flamingo pen $0.12
|
| 4 |
+
picture of a shark $0.54
|
| 5 |
+
beach postcard $0.61
|
| 6 |
+
whale keychain $0.81
|
csv-0/1004.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name,Age (years)
|
| 2 |
+
Rick,12
|
| 3 |
+
Jared,19
|
| 4 |
+
Pamela,18
|
| 5 |
+
Bob,15
|
csv-0/1004.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Name</th>
|
| 5 |
+
<th>Age (years)</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>Rick</td>
|
| 11 |
+
<td>12</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>Jared</td>
|
| 15 |
+
<td>19</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>Pamela</td>
|
| 19 |
+
<td>18</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>Bob</td>
|
| 23 |
+
<td>15</td>
|
| 24 |
+
</tr>
|
| 25 |
+
</tbody>
|
| 26 |
+
</table>
|
csv-0/1004.tsv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Name Age (years)
|
| 2 |
+
Rick 12
|
| 3 |
+
Jared 19
|
| 4 |
+
Pamela 18
|
| 5 |
+
Bob 15
|
csv-0/1005.csv
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Number of sweatshirts,Frequency
|
| 2 |
+
0,20
|
| 3 |
+
1,8
|
| 4 |
+
2,13
|
| 5 |
+
3,14
|
| 6 |
+
4,5
|
| 7 |
+
5,9
|
| 8 |
+
6,1
|
csv-0/1005.html
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Number of sweatshirts</th>
|
| 5 |
+
<th>Frequency</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>0</td>
|
| 11 |
+
<td>20</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>1</td>
|
| 15 |
+
<td>8</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>2</td>
|
| 19 |
+
<td>13</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>3</td>
|
| 23 |
+
<td>14</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>4</td>
|
| 27 |
+
<td>5</td>
|
| 28 |
+
</tr>
|
| 29 |
+
<tr>
|
| 30 |
+
<td>5</td>
|
| 31 |
+
<td>9</td>
|
| 32 |
+
</tr>
|
| 33 |
+
<tr>
|
| 34 |
+
<td>6</td>
|
| 35 |
+
<td>1</td>
|
| 36 |
+
</tr>
|
| 37 |
+
</tbody>
|
| 38 |
+
</table>
|
csv-0/1005.tsv
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Number of sweatshirts Frequency
|
| 2 |
+
0 20
|
| 3 |
+
1 8
|
| 4 |
+
2 13
|
| 5 |
+
3 14
|
| 6 |
+
4 5
|
| 7 |
+
5 9
|
| 8 |
+
6 1
|
csv-0/1006.csv
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day,Temperature (°C)
|
| 2 |
+
Thursday,9
|
| 3 |
+
Friday,6
|
| 4 |
+
Saturday,6
|
| 5 |
+
Sunday,8
|
| 6 |
+
Monday,8
|
csv-0/1006.html
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Day</th>
|
| 5 |
+
<th>Temperature (°C)</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>Thursday</td>
|
| 11 |
+
<td>9</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>Friday</td>
|
| 15 |
+
<td>6</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>Saturday</td>
|
| 19 |
+
<td>6</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>Sunday</td>
|
| 23 |
+
<td>8</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>Monday</td>
|
| 27 |
+
<td>8</td>
|
| 28 |
+
</tr>
|
| 29 |
+
</tbody>
|
| 30 |
+
</table>
|
csv-0/1006.tsv
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day Temperature (°C)
|
| 2 |
+
Thursday 9
|
| 3 |
+
Friday 6
|
| 4 |
+
Saturday 6
|
| 5 |
+
Sunday 8
|
| 6 |
+
Monday 8
|
csv-0/1007.csv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Stem,Leaf
|
| 2 |
+
2,"2, 3, 4, 6, 7, 9"
|
| 3 |
+
3,"0, 2, 4, 4, 6, 6, 6, 7"
|
| 4 |
+
4,"2, 3, 5"
|
| 5 |
+
5,
|
| 6 |
+
6,"5, 6, 6"
|
| 7 |
+
7,"0, 4, 4, 9"
|
csv-0/1007.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Stem</th>
|
| 5 |
+
<th>Leaf</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>2</td>
|
| 11 |
+
<td>2, 3, 4, 6, 7, 9</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>3</td>
|
| 15 |
+
<td>0, 2, 4, 4, 6, 6, 6, 7</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>4</td>
|
| 19 |
+
<td>2, 3, 5</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>5</td>
|
| 23 |
+
<td></td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>6</td>
|
| 27 |
+
<td>5, 6, 6</td>
|
| 28 |
+
</tr>
|
| 29 |
+
<tr>
|
| 30 |
+
<td>7</td>
|
| 31 |
+
<td>0, 4, 4, 9</td>
|
| 32 |
+
</tr>
|
| 33 |
+
</tbody>
|
| 34 |
+
</table>
|
csv-0/1007.tsv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Stem Leaf
|
| 2 |
+
2 2, 3, 4, 6, 7, 9
|
| 3 |
+
3 0, 2, 4, 4, 6, 6, 6, 7
|
| 4 |
+
4 2, 3, 5
|
| 5 |
+
5
|
| 6 |
+
6 5, 6, 6
|
| 7 |
+
7 0, 4, 4, 9
|
csv-0/1008.csv
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day,Number of bags of popcorn
|
| 2 |
+
Monday,3
|
| 3 |
+
Tuesday,10
|
| 4 |
+
Wednesday,7
|
| 5 |
+
Thursday,10
|
| 6 |
+
Friday,8
|
| 7 |
+
Saturday,1
|
| 8 |
+
Sunday,1
|
csv-0/1008.html
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Day</th>
|
| 5 |
+
<th>Number of bags of popcorn</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>Monday</td>
|
| 11 |
+
<td>3</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>Tuesday</td>
|
| 15 |
+
<td>10</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>Wednesday</td>
|
| 19 |
+
<td>7</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>Thursday</td>
|
| 23 |
+
<td>10</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>Friday</td>
|
| 27 |
+
<td>8</td>
|
| 28 |
+
</tr>
|
| 29 |
+
<tr>
|
| 30 |
+
<td>Saturday</td>
|
| 31 |
+
<td>1</td>
|
| 32 |
+
</tr>
|
| 33 |
+
<tr>
|
| 34 |
+
<td>Sunday</td>
|
| 35 |
+
<td>1</td>
|
| 36 |
+
</tr>
|
| 37 |
+
</tbody>
|
| 38 |
+
</table>
|
csv-0/1008.tsv
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Day Number of bags of popcorn
|
| 2 |
+
Monday 3
|
| 3 |
+
Tuesday 10
|
| 4 |
+
Wednesday 7
|
| 5 |
+
Thursday 10
|
| 6 |
+
Friday 8
|
| 7 |
+
Saturday 1
|
| 8 |
+
Sunday 1
|
csv-0/1009.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Restaurant,Supreme pizzas,Cheese pizzas
|
| 2 |
+
Taste of New York,$9,$10
|
| 3 |
+
New York Slice,$20,$16
|
| 4 |
+
Dan's Deep Dish,$12,$19
|
| 5 |
+
The Big Cheese,$7,$8
|
csv-0/1009.html
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Restaurant</th>
|
| 5 |
+
<th>Supreme pizzas</th>
|
| 6 |
+
<th>Cheese pizzas</th>
|
| 7 |
+
</tr>
|
| 8 |
+
</thead>
|
| 9 |
+
<tbody>
|
| 10 |
+
<tr>
|
| 11 |
+
<td>Taste of New York</td>
|
| 12 |
+
<td>$9</td>
|
| 13 |
+
<td>$10</td>
|
| 14 |
+
</tr>
|
| 15 |
+
<tr>
|
| 16 |
+
<td>New York Slice</td>
|
| 17 |
+
<td>$20</td>
|
| 18 |
+
<td>$16</td>
|
| 19 |
+
</tr>
|
| 20 |
+
<tr>
|
| 21 |
+
<td>Dan's Deep Dish</td>
|
| 22 |
+
<td>$12</td>
|
| 23 |
+
<td>$19</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>The Big Cheese</td>
|
| 27 |
+
<td>$7</td>
|
| 28 |
+
<td>$8</td>
|
| 29 |
+
</tr>
|
| 30 |
+
</tbody>
|
| 31 |
+
</table>
|
csv-0/1009.tsv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Restaurant Supreme pizzas Cheese pizzas
|
| 2 |
+
Taste of New York $9 $10
|
| 3 |
+
New York Slice $20 $16
|
| 4 |
+
Dan's Deep Dish $12 $19
|
| 5 |
+
The Big Cheese $7 $8
|
csv-0/101.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Number of farms,Number of cows
|
| 2 |
+
1,2
|
| 3 |
+
2,4
|
| 4 |
+
3,?
|
csv-0/101.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Number of farms</th>
|
| 5 |
+
<th>Number of cows</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>1</td>
|
| 11 |
+
<td>2</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>2</td>
|
| 15 |
+
<td>4</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>3</td>
|
| 19 |
+
<td>?</td>
|
| 20 |
+
</tr>
|
| 21 |
+
</tbody>
|
| 22 |
+
</table>
|
csv-0/101.tsv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Number of farms Number of cows
|
| 2 |
+
1 2
|
| 3 |
+
2 4
|
| 4 |
+
3 ?
|
csv-0/1010.csv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Column 1,Column 2
|
| 2 |
+
peach pie,$14.94
|
| 3 |
+
coconut cake,$24.28
|
| 4 |
+
key lime pie,$14.01
|
| 5 |
+
pineapple upside-down cake,$14.64
|
| 6 |
+
pecan pie,$12.63
|
| 7 |
+
pear tart,$23.16
|
csv-0/1010.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table border="1" class="dataframe">
|
| 2 |
+
<thead>
|
| 3 |
+
<tr style="text-align: right;">
|
| 4 |
+
<th>Column 1</th>
|
| 5 |
+
<th>Column 2</th>
|
| 6 |
+
</tr>
|
| 7 |
+
</thead>
|
| 8 |
+
<tbody>
|
| 9 |
+
<tr>
|
| 10 |
+
<td>peach pie</td>
|
| 11 |
+
<td>$14.94</td>
|
| 12 |
+
</tr>
|
| 13 |
+
<tr>
|
| 14 |
+
<td>coconut cake</td>
|
| 15 |
+
<td>$24.28</td>
|
| 16 |
+
</tr>
|
| 17 |
+
<tr>
|
| 18 |
+
<td>key lime pie</td>
|
| 19 |
+
<td>$14.01</td>
|
| 20 |
+
</tr>
|
| 21 |
+
<tr>
|
| 22 |
+
<td>pineapple upside-down cake</td>
|
| 23 |
+
<td>$14.64</td>
|
| 24 |
+
</tr>
|
| 25 |
+
<tr>
|
| 26 |
+
<td>pecan pie</td>
|
| 27 |
+
<td>$12.63</td>
|
| 28 |
+
</tr>
|
| 29 |
+
<tr>
|
| 30 |
+
<td>pear tart</td>
|
| 31 |
+
<td>$23.16</td>
|
| 32 |
+
</tr>
|
| 33 |
+
</tbody>
|
| 34 |
+
</table>
|
csv-0/1010.tsv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Column 1 Column 2
|
| 2 |
+
peach pie $14.94
|
| 3 |
+
coconut cake $24.28
|
| 4 |
+
key lime pie $14.01
|
| 5 |
+
pineapple upside-down cake $14.64
|
| 6 |
+
pecan pie $12.63
|
| 7 |
+
pear tart $23.16
|
dataset.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
from datasets import DatasetInfo, GeneratorBasedBuilder, SplitGenerator, Split, Features, Value
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class TabMWP(GeneratorBasedBuilder):
|
| 7 |
+
"""
|
| 8 |
+
A simple Hugging Face dataset builder for evaluating question-answering (QA)
|
| 9 |
+
over tabular data, using file paths as context (CSV, HTML, TSV).
|
| 10 |
+
|
| 11 |
+
The dataset is loaded from a JSON file containing QA samples and context file paths.
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
def _info(self):
|
| 15 |
+
"""
|
| 16 |
+
Returns the metadata and schema of the dataset.
|
| 17 |
+
|
| 18 |
+
Returns:
|
| 19 |
+
DatasetInfo: Contains description, features (schema), and supervised keys.
|
| 20 |
+
"""
|
| 21 |
+
return DatasetInfo(
|
| 22 |
+
description="QA over tabular data with file paths as context",
|
| 23 |
+
features=Features({
|
| 24 |
+
"id": Value("string"),
|
| 25 |
+
"utterance": Value("string"),
|
| 26 |
+
"target_value": Value("string"),
|
| 27 |
+
"context": Features({
|
| 28 |
+
"csv": Value("string"),
|
| 29 |
+
"html": Value("string"),
|
| 30 |
+
"tsv": Value("string"),
|
| 31 |
+
}),
|
| 32 |
+
}),
|
| 33 |
+
supervised_keys=None,
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
def _split_generators(self, dl_manager):
|
| 37 |
+
"""
|
| 38 |
+
Downloads and defines dataset splits.
|
| 39 |
+
|
| 40 |
+
Args:
|
| 41 |
+
dl_manager (DownloadManager): The Hugging Face datasets download manager.
|
| 42 |
+
|
| 43 |
+
Returns:
|
| 44 |
+
List[SplitGenerator]: A list containing a single test split generator.
|
| 45 |
+
"""
|
| 46 |
+
downloaded_files = dl_manager.download({
|
| 47 |
+
"train": "examples/examples-train.json",
|
| 48 |
+
"test": "examples/examples-test.json"
|
| 49 |
+
})
|
| 50 |
+
return [
|
| 51 |
+
SplitGenerator(name=Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
| 52 |
+
SplitGenerator(name=Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
|
| 53 |
+
]
|
| 54 |
+
|
| 55 |
+
def _generate_examples(self, filepath):
|
| 56 |
+
"""
|
| 57 |
+
Yields examples from the dataset JSON file.
|
| 58 |
+
|
| 59 |
+
Each example consists of a question, target value, and paths to context files
|
| 60 |
+
(CSV, HTML, TSV). The relative paths are resolved into absolute paths based
|
| 61 |
+
on the JSON file's directory.
|
| 62 |
+
|
| 63 |
+
Args:
|
| 64 |
+
filepath (str): Path to the JSON file containing dataset examples.
|
| 65 |
+
|
| 66 |
+
Yields:
|
| 67 |
+
Tuple[int, dict]: A tuple of the index and the data sample dictionary.
|
| 68 |
+
"""
|
| 69 |
+
import json
|
| 70 |
+
with open(filepath, encoding="utf-8") as f:
|
| 71 |
+
data = json.load(f)
|
| 72 |
+
|
| 73 |
+
for i, item in enumerate(data):
|
| 74 |
+
yield i, {
|
| 75 |
+
"id": item["id"],
|
| 76 |
+
"utterance": item["utterance"],
|
| 77 |
+
"target_value": item["target_value"],
|
| 78 |
+
"context": {
|
| 79 |
+
"csv": item["context"]["csv"],
|
| 80 |
+
"html": item["context"]["html"],
|
| 81 |
+
"tsv": item["context"]["tsv"],
|
| 82 |
+
},
|
| 83 |
+
}
|