doc_id
stringlengths 8
8
| pg_id
int32 0
19
| ocr
stringlengths 36
500k
| img
unknown |
---|---|---|---|
ffjh0035 | 0 | "{\"lines_data\": [{\"Word\": \"FILESYOUR\", \"Confidence\": 0.188, \"X1\": 0.50794, \"Y1\": 0.0022,(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffjh0035 | 1 | "{\"lines_data\": [{\"Word\": \"SAVE TRAIN attractions feature a five to six railcar blend\", \"Conf(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffjh0035 | 2 | "{\"lines_data\": [{\"Word\": \"Mr. Powers, another rarity of this project is the many\", \"Confiden(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffbl0162 | 0 | "{\"lines_data\": [{\"Word\": \"2080811734\", \"Confidence\": 0.991, \"X1\": 0.53675, \"Y1\": 0.0072(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffbw0038 | 0 | "{\"lines_data\": [{\"Word\": \"PHILIP MORRIS\", \"Confidence\": 0.9955, \"X1\": 0.43173, \"Y1\": 0.(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffmh0216 | 6 | "{\"lines_data\": [{\"Word\": \"50%{\", \"Confidence\": 0.179, \"X1\": 0.291, \"Y1\": 0.2398, \"X2\"(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffmh0216 | 0 | "{\"lines_data\": [{\"Word\": \"Numbers of staphylococci retained immediately and at four\", \"Confi(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffmh0216 | 1 | "{\"lines_data\": [{\"Word\": \"EFFECT OF ALCOHOL .\", \"Confidence\": 0.83925, \"X1\": 0.392, \"Y1\(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffmh0216 | 4 | "{\"lines_data\": [{\"Word\": \"EFFECTOF CIGARETTE SMOKE\", \"Confidence\": 0.47167, \"X1\": 0.289, (...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
ffmh0216 | 3 | "{\"lines_data\": [{\"Word\": \"EFFECT OF BARBITURATES\", \"Confidence\": 0.956, \"X1\": 0.398, \"Y1(...TRUNCATED) | "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDA(...TRUNCATED) |
Dataset Card for TABME++
The TABME dataset is a synthetic collection of business document folders generated from the Truth Tobacco Industry Documents archive, with preprocessing and OCR results included, designed to simulate real-world digitization tasks.
TABME++ extends TABME by enriching it with commercial-quality OCR (Microsoft OCR).
Dataset Details
Dataset Description
The TABME dataset is a synthetic collection created to simulate the digitization of business documents, derived from a portion of the Truth Tobacco Industry Documents (TTID) archive. The dataset was constructed by sampling 44,769 PDF documents, excluding corrupted files and those longer than 20 pages, and then preprocessing them by cropping margins, converting them to grayscale, and resizing to 1,000 pixels. To mimic real-world scenarios, folders of documents were generated using a Poisson distribution with 𝜆 = 11, leading to a mean folder length of around 30 pages. The dataset was split into training, validation, and test sets, with OCR preprocessing performed using the Tesseract engine. The dataset includes 100,000 folders for training, 5,000 for validation, and 5,000 for testing, and the results include recognized words, their coordinates, and confidence levels.
TABME++ replaces the previous OCR with commericial-quality OCR obtained through Microsoft's OCR services.
- Curated by: UCSF, UCL, University of Cambridge, Vector.ai, Roots Automation
- Language(s) (NLP): English
- License: MIT
Dataset Sources
- Repository:
- Paper:
Uses
Direct Use
This dataset is intended to be used for page stream segmentation: the segmentation of a stream of ordered pages into coherent atomic documents.
Dataset Structure
Each row of the dataset corresponds to one page of one document. Each page has the following features:
doc_id
, str: The unique document id this page belongs topg_id
, int: The page id within its documentocr
, str: A string containing the OCR annotations from Microsoft OCR. These can be loaded as a Python dictionary withjson.loads
(or equivalent).img
, binary: The raw bytes of the page image. These can be converted back to a PIL.Image withImage.open(io.BytesIO(bytes))
(or equivalent).
This dataset is given such that each document appears once. To build out the full aggregated synthetic streams, one needs to collate the unique documents according to the streams described in the streams sub-folder.
Dataset Creation
Curation Rationale
The original data, Truth Tobacco Industry Documents archive (formerly known as Legacy Tobacco Documents Library), was curated by researchers at UCSF. This was to promote the study of information retrieval and analysis of business documents.
TABME was curated to promote research on page stream segmentation, a core task in automated document processing. TABME++ improves upon TABME by adding higher-quality OCR annotations, but is still curated for the same purposes.
Source Data
From the UCSF Library:
Truth Tobacco Industry Documents (formerly known as Legacy Tobacco Documents Library) was created in 2002 by the UCSF Library. It was built to house and provide permanent access to tobacco industry internal corporate documents produced during litigation between US States and the seven major tobacco industry organizations and other sources. These internal documents give a view into the workings of one of the largest and most influential industries in the United States.
Citation
BibTeX:
@misc{heidenreich2024largelanguagemodelspage,
title={Large Language Models for Page Stream Segmentation},
author={Hunter Heidenreich and Ratish Dalvi and Rohith Mukku and Nikhil Verma and Neven Pičuljan},
year={2024},
eprint={2408.11981},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2408.11981},
}
Dataset Card Authors
Hunter Heidenreich
- Downloads last month
- 174