Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

This dataset is generated syhthetically to create tables with following characteristics:

  1. Empty cell percentage in following range [0,30] (Dense)
  2. There is clear seperator between rows and columns (Structured).
  3. 15 <= num rows <= 30, 7 <= num columns <= 15 (Long)

Load the dataset

import io
import pandas as pd
from PIL import Image

def bytes_to_image(self, image_bytes: bytes):
  return Image.open(io.BytesIO(image_bytes))

def parse_annotations(self, annotations: str) -> pd.DataFrame:
  return pd.read_json(StringIO(annotations), orient="records")

test_data = load_dataset('nanonets/long_dense_structured_table', split='test')
data_point = test_data[0]
image, gt_table = (
    bytes_to_image(data_point["images"]),
    parse_annotations(data_point["annotation"]),
)
Downloads last month
23

Collection including nanonets/long_dense_structured_table