TABLET-tables / README.md
alonsoapp's picture
Update README.md
7121635 verified

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.

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: The smallest TABLET subset, including 776,602 examples across 14 tasks.
  • (train) 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: 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: The development set of TABLET.
  • (test) 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
  1. 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

  1. 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_*
  1. 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/
  1. Resources path You can place the tables folder under ./resources/ at the root of this project 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