Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### TABLET-tables
|
| 2 |
+
Here are the tables of [TABLET]() dataset in file format. While otehr of tABLE are self contained and include each table image and HTML alongside each example,
|
| 3 |
+
here you can find and download just the table images and HTMLs.
|
| 4 |
+
|
| 5 |
+
#### TABLET datasets
|
| 6 |
+
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:
|
| 7 |
+
- _(train)_ [**TABLET-Small**](https://huggingface.co/datasets/alonsoapp/TABLET-Small): The smallest TABLET subset, including **776,602 examples** across **14 tasks**.
|
| 8 |
+
- _(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**.
|
| 9 |
+
- _(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.
|
| 10 |
+
- _(dev)_ [**TABLET-dev**](https://huggingface.co/datasets/alonsoapp/TABLET-dev): The **development** set of TABLET.
|
| 11 |
+
- _(test)_ [**TABLET-test**](https://huggingface.co/datasets/alonsoapp/TABLET-test): The **test** set of TABLET.
|
| 12 |
+
|
| 13 |
+
#### Downloading Table Files
|
| 14 |
+
1. **Download all files (1.7 TB).**
|
| 15 |
+
All TABLET train sets build on each other, `Small` is a subset of `Medium` which is also
|
| 16 |
+
a subset of `Large`. You can download a smaller set and later expand it by downloading more parts. No need to re-download
|
| 17 |
+
existing files. Merge all parts into the final dataset using the snippet in step 4.
|
| 18 |
+
```
|
| 19 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_001?download=true
|
| 20 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_002?download=true
|
| 21 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_003?download=true
|
| 22 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_004?download=true
|
| 23 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_005?download=true
|
| 24 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_006?download=true
|
| 25 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_007?download=true
|
| 26 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_008?download=true
|
| 27 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/dataset.tar.zst.part_009?download=true
|
| 28 |
+
wget https://huggingface.co/datasets/alonsoapp/TABLET-tables/resolve/main/checksums.sha256?download=true
|
| 29 |
+
```
|
| 30 |
+
2. **Verify:**
|
| 31 |
+
```
|
| 32 |
+
sha256sum -c checksums.sha256
|
| 33 |
+
```
|
| 34 |
+
Re-download any files that do not pass the check
|
| 35 |
+
|
| 36 |
+
3. **Stream-extract without recombining**
|
| 37 |
+
```
|
| 38 |
+
cat dataset.tar.zst.part_* | zstd -d -T0 | tar -xf -
|
| 39 |
+
```
|
| 40 |
+
4. **Merge into the same directory using rsync**
|
| 41 |
+
```
|
| 42 |
+
mv ./small/ ./resources/
|
| 43 |
+
rsync -zavhP --remove-source-files ./medium/tables/ ./resources/tables/
|
| 44 |
+
rsync -zavhP --remove-source-files ./large/tables/ ./resources/tables/
|
| 45 |
+
```
|
| 46 |
+
5. **Resources path**
|
| 47 |
+
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).
|
| 48 |
+
If using a custom path, export it as an environment variable:
|
| 49 |
+
```
|
| 50 |
+
export TABLET_RESOURCES="/media/hdd/resources/" # Your custom path to resources
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
Once finished, the `./resources/tables/` the folder should look like this:
|
| 55 |
+
```
|
| 56 |
+
.
|
| 57 |
+
├── html
|
| 58 |
+
│ ├── highlighted
|
| 59 |
+
│ │ ├── ToTTo
|
| 60 |
+
│ │ │ ├── fetaqa
|
| 61 |
+
│ │ │ │ ├── dev
|
| 62 |
+
│ │ │ │ ├── test
|
| 63 |
+
│ │ │ │ └── train
|
| 64 |
+
│ │ │ └── totto
|
| 65 |
+
│ │ │ ├── dev
|
| 66 |
+
│ │ │ ├── test
|
| 67 |
+
│ │ │ └── train
|
| 68 |
+
│ │ └── TURL
|
| 69 |
+
│ │ ├── col_type
|
| 70 |
+
│ │ │ ├── dev
|
| 71 |
+
│ │ │ ├── test
|
| 72 |
+
│ │ │ └── train
|
| 73 |
+
│ │ ├── ent_link
|
| 74 |
+
│ │ │ ├── dev
|
| 75 |
+
│ │ │ ├── test
|
| 76 |
+
│ │ │ └── train
|
| 77 |
+
│ │ └── rel_extraction
|
| 78 |
+
│ │ ├── dev
|
| 79 |
+
│ │ ├── test
|
| 80 |
+
│ │ └── train
|
| 81 |
+
│ └── raw
|
| 82 |
+
│ ├── HybridQA
|
| 83 |
+
��� ├── InfoTabs
|
| 84 |
+
│ ├── NSF
|
| 85 |
+
│ ├── PubTabNet
|
| 86 |
+
│ ├── StatCan
|
| 87 |
+
│ ├── TabFact
|
| 88 |
+
│ ├── TABMWP
|
| 89 |
+
│ ├── TAT-QA
|
| 90 |
+
│ ├── ToTTo
|
| 91 |
+
│ ├── TURL
|
| 92 |
+
│ ├── WikiBIO
|
| 93 |
+
│ └── WikiTableQuestions
|
| 94 |
+
└── img
|
| 95 |
+
├── highlighted
|
| 96 |
+
│ ├── ToTTo
|
| 97 |
+
│ │ ├── fetaqa
|
| 98 |
+
│ │ │ ├── dev
|
| 99 |
+
│ │ │ ├── test
|
| 100 |
+
│ │ │ └── train
|
| 101 |
+
│ │ └── totto
|
| 102 |
+
│ │ ├── dev
|
| 103 |
+
│ │ ├── test
|
| 104 |
+
│ │ └── train
|
| 105 |
+
│ └── TURL
|
| 106 |
+
│ ├── col_type
|
| 107 |
+
│ │ ├── dev
|
| 108 |
+
│ │ ├── test
|
| 109 |
+
│ │ └── train
|
| 110 |
+
│ ├── ent_link
|
| 111 |
+
│ │ ├── dev
|
| 112 |
+
│ │ ├── test
|
| 113 |
+
│ │ └── train
|
| 114 |
+
│ └── rel_extraction
|
| 115 |
+
│ ├── dev
|
| 116 |
+
│ ├── test
|
| 117 |
+
│ └── train
|
| 118 |
+
└── raw
|
| 119 |
+
├── HybridQA
|
| 120 |
+
├── InfoTabs
|
| 121 |
+
├── NSF
|
| 122 |
+
├── PubTabNet
|
| 123 |
+
├── StatCan
|
| 124 |
+
├── TabFact
|
| 125 |
+
├── TABMWP
|
| 126 |
+
├── TAT-QA
|
| 127 |
+
├── ToTTo
|
| 128 |
+
├── TURL
|
| 129 |
+
├── WikiBIO
|
| 130 |
+
└── WikiTableQuestions
|
| 131 |
+
```
|