File size: 16,285 Bytes
cb07af3 004ab8b 9a3130c 004ab8b cb07af3 222a63e cb07af3 004ab8b cb07af3 004ab8b cb07af3 004ab8b cb07af3 004ab8b cb07af3 004ab8b cb07af3 004ab8b cb07af3 004ab8b 7121635 cb07af3 004ab8b cb07af3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | ### TABLET-tables
Here you can find the image and HTML files for all tables in the TABLET dataset.
These tables are already included in all TABLET datasets so **you don't need to download anything in this repository** if you only want to use the datasets.
TABLET datasets on Hugging Face are self-contained (each example already includes its table image and HTML), this resource provides access to the complete collection of table images and HTML files in one place.
These files are particularly useful when developing with our [GitHub code](https://github.com/AlonsoApp/TABLET).
#### TABLET datasets
In case you just want to have access to the examples including their images in a self-contained ready-to-use dataset, here are all the TABLET subsets:
- _(train)_ [**TABLET-Small**](https://huggingface.co/datasets/alonsoapp/TABLET-Small): The smallest TABLET subset, including **776,602 examples** across **14 tasks**.
- _(train)_ [**TABLET-Medium**](https://huggingface.co/datasets/alonsoapp/TABLET-Medium): Includes all examples from _TABLET-Small_, plus **Column Type Annotation**, **Entity Linking**, and **Relation Extraction** tasks. Each task is capped at **140,000 examples**, resulting in a total of **1,117,217 training examples** across **17 tasks**.
- _(train)_ [**TABLET-Large**](https://huggingface.co/datasets/alonsoapp/TABLET-Large): Includes all examples from _TABLET-Medium_ with **no cap** on task size, resulting in a total of **3,505,311 training examples** across **17 tasks**.
- _(dev)_ [**TABLET-dev**](https://huggingface.co/datasets/alonsoapp/TABLET-dev): The **development** set of TABLET.
- _(test)_ [**TABLET-test**](https://huggingface.co/datasets/alonsoapp/TABLET-test): The **test** set of TABLET.
#### Downloading Table Files
1. **Download all files.**
All TABLET train sets build on each other, `Small` is a subset of `Medium` which is also
a subset of `Large`. You can download a smaller set and later expand it by downloading more parts. No need to re-download
existing files. Merge all parts into the final dataset using the snippet in step 4.
Note that the first chunk "small.tar.zst.part_00*" contains not only TABLET-Small but also TABLET-test, and TABLET-dev.
```
# TABLET-Small, TABLET-test, and TABLET-dev (483GB)
wget -O small.tar.zst.part_001 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_001?download=true
wget -O small.tar.zst.part_002 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_002?download=true
wget -O small.tar.zst.part_003 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_003?download=true
wget -O small.tar.zst.part_004 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_004?download=true
wget -O small.tar.zst.part_005 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_005?download=true
wget -O small.tar.zst.part_006 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_006?download=true
wget -O small.tar.zst.part_007 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_007?download=true
wget -O small.tar.zst.part_008 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_008?download=true
wget -O small.tar.zst.part_009 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_009?download=true
wget -O small.tar.zst.part_0010 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0010?download=true
wget -O small.tar.zst.part_0011 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0011?download=true
wget -O small.tar.zst.part_0012 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0012?download=true
wget -O small.tar.zst.part_0013 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0013?download=true
wget -O small.tar.zst.part_0014 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0014?download=true
wget -O small.tar.zst.part_0015 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0015?download=true
wget -O small.tar.zst.part_0016 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0016?download=true
wget -O small.tar.zst.part_0017 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0017?download=true
wget -O small.tar.zst.part_0018 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0018?download=true
wget -O small.tar.zst.part_0019 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0019?download=true
wget -O small.tar.zst.part_0020 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0020?download=true
wget -O small.tar.zst.part_0021 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0021?download=true
wget -O small.tar.zst.part_0022 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0022?download=true
wget -O small.tar.zst.part_0023 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0023?download=true
wget -O small.tar.zst.part_0024 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0024?download=true
wget -O small.tar.zst.part_0025 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0025?download=true
wget -O small.tar.zst.part_0026 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0026?download=true
wget -O small.tar.zst.part_0027 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/small.tar.zst.part_0027?download=true
wget -O checksums_small.sha256 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/checksums_small.sha256?download=true
# TABLET-Small complete: You already have all the tables needed for TABLET-Small, TABLET-test, and TABLET-dev.
# TABLET-Medium (+146GB)
wget -O medium.tar.zst.part_001 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_001?download=true
wget -O medium.tar.zst.part_002 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_002?download=true
wget -O medium.tar.zst.part_003 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_003?download=true
wget -O medium.tar.zst.part_004 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_004?download=true
wget -O medium.tar.zst.part_005 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_005?download=true
wget -O medium.tar.zst.part_006 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_006?download=true
wget -O medium.tar.zst.part_007 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_007?download=true
wget -O medium.tar.zst.part_008 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_008?download=true
wget -O medium.tar.zst.part_009 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/medium.tar.zst.part_009?download=true
wget -O checksums_medium.sha256 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/checksums_medium.sha256?download=true
# TABLET-Medium complete: You already have all the tables needed for TABLET-Medium.
# TABLET-Large (+907GB)
wget -O large.tar.zst.part_001 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_001?download=true
wget -O large.tar.zst.part_002 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_002?download=true
wget -O large.tar.zst.part_003 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_003?download=true
wget -O large.tar.zst.part_004 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_004?download=true
wget -O large.tar.zst.part_005 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_005?download=true
wget -O large.tar.zst.part_006 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_006?download=true
wget -O large.tar.zst.part_007 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_007?download=true
wget -O large.tar.zst.part_008 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_008?download=true
wget -O large.tar.zst.part_009 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_009?download=true
wget -O large.tar.zst.part_0010 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0010?download=true
wget -O large.tar.zst.part_0011 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0011?download=true
wget -O large.tar.zst.part_0012 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0012?download=true
wget -O large.tar.zst.part_0013 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0013?download=true
wget -O large.tar.zst.part_0014 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0014?download=true
wget -O large.tar.zst.part_0015 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0015?download=true
wget -O large.tar.zst.part_0016 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0016?download=true
wget -O large.tar.zst.part_0017 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0017?download=true
wget -O large.tar.zst.part_0018 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0018?download=true
wget -O large.tar.zst.part_0019 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0019?download=true
wget -O large.tar.zst.part_0020 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0020?download=true
wget -O large.tar.zst.part_0021 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0021?download=true
wget -O large.tar.zst.part_0022 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0022?download=true
wget -O large.tar.zst.part_0023 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0023?download=true
wget -O large.tar.zst.part_0024 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0024?download=true
wget -O large.tar.zst.part_0025 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0025?download=true
wget -O large.tar.zst.part_0026 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0026?download=true
wget -O large.tar.zst.part_0027 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0027?download=true
wget -O large.tar.zst.part_0028 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0028?download=true
wget -O large.tar.zst.part_0029 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/large.tar.zst.part_0029?download=true
wget -O checksums_large.sha256 https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/checksums_large.sha256?download=true
```
2. **Verify checksums (optional):**
```
sha256sum -c checksums_small.sha256
sha256sum -c checksums_medium.sha256
sha256sum -c checksums_large.sha256
```
Re-download any files that do not pass the check
3. **Stream-extract the parts:**
```
cat small.tar.zst.part_* | zstd -d -T0 | tar -xf -
rm small.tar.zst.part_*
cat medium.tar.zst.part_* | zstd -d -T0 | tar -xf -
rm medium.tar.zst.part_*
cat large.tar.zst.part_* | zstd -d -T0 | tar -xf -
rm large.tar.zst.part_*
```
4. **Merge into the same directory using rsync:**
```
mv ./small/ ./resources/
rsync -zavhP --remove-source-files ./medium/tables/ ./resources/tables/
rsync -zavhP --remove-source-files ./large/tables/ ./resources/tables/
```
5. **Resources path**
You can place the `tables` folder under `./resources/` at the root of [this project](https://github.com/AlonsoApp/TABLET) or put it on a separate location (e.g. a high capacity drive).
If using a custom path, export it as an environment variable:
```
export TABLET_RESOURCES="/media/hdd/resources/" # Your custom path to resources
```
Once finished, the `./resources/tables/` the folder should look like this:
```
.
├── html
│ ├── highlighted
│ │ ├── ToTTo
│ │ │ ├── fetaqa
│ │ │ │ ├── dev
│ │ │ │ ├── test
│ │ │ │ └── train
│ │ │ └── totto
│ │ │ ├── dev
│ │ │ ├── test
│ │ │ └── train
│ │ └── TURL
│ │ ├── col_type
│ │ │ ├── dev
│ │ │ ├── test
│ │ │ └── train
│ │ ├── ent_link
│ │ │ ├── dev
│ │ │ ├── test
│ │ │ └── train
│ │ └── rel_extraction
│ │ ├── dev
│ │ ├── test
│ │ └── train
│ └── raw
│ ├── HybridQA
│ ├── InfoTabs
│ ├── NSF
│ ├── PubTabNet
│ ├── StatCan
│ ├── TabFact
│ ├── TABMWP
│ ├── TAT-QA
│ ├── ToTTo
│ ├── TURL
│ ├── WikiBIO
│ └── WikiTableQuestions
└── img
├── highlighted
│ ├── ToTTo
│ │ ├── fetaqa
│ │ │ ├── dev
│ │ │ ├── test
│ │ │ └── train
│ │ └── totto
│ │ ├── dev
│ │ ├── test
│ │ └── train
│ └── TURL
│ ├── col_type
│ │ ├── dev
│ │ ├── test
│ │ └── train
│ ├── ent_link
│ │ ├── dev
│ │ ├── test
│ │ └── train
│ └── rel_extraction
│ ├── dev
│ ├── test
│ └── train
└── raw
├── HybridQA
├── InfoTabs
├── NSF
├── PubTabNet
├── StatCan
├── TabFact
├── TABMWP
├── TAT-QA
├── ToTTo
├── TURL
├── WikiBIO
└── WikiTableQuestions
``` |