Dataset Viewer
Auto-converted to Parquet Duplicate
doc_type
stringclasses
14 values
parent_doc_name
stringclasses
150 values
local_doc_id
stringclasses
79 values
page
int64
1
20
image_path
stringlengths
24
31
group_id
stringclasses
8 values
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-01
1
images/legal/012/p01.jpg
AA
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-01
2
images/legal/012/p02.jpg
AA
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-02
3
images/legal/003/p01.jpg
AB
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-02
4
images/legal/003/p02.jpg
AB
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-03
5
images/legal/029/p01.jpg
AC
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-03
6
images/legal/029/p02.jpg
AC
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-04
7
images/legal/017/p02.jpg
AD
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-04
8
images/legal/017/p01.jpg
AD
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-05
9
images/legal/019/p02.jpg
AE
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-05
10
images/legal/019/p01.jpg
AE
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-06
11
images/legal/009/p04.jpg
AF
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-06
12
images/legal/009/p02.jpg
AF
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-06
13
images/legal/009/p01.jpg
AF
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-06
14
images/legal/009/p03.jpg
AF
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-06
15
images/legal/009/p05.jpg
AF
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-07
16
images/legal/004/p01.jpg
AG
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-07
17
images/legal/004/p02.jpg
AG
legal
00050c62-8846-44f8-b5b8-6dc03883fc0e
legal-07
18
images/legal/004/p03.jpg
AG
education
0701a065-926d-48ab-a63e-80ab63546582
education-01
1
images/education/034/p01.jpg
AA
education
0701a065-926d-48ab-a63e-80ab63546582
education-01
2
images/education/034/p03.jpg
AA
education
0701a065-926d-48ab-a63e-80ab63546582
education-01
3
images/education/034/p02.jpg
AA
education
0701a065-926d-48ab-a63e-80ab63546582
education-01
4
images/education/034/p04.jpg
AA
education
0701a065-926d-48ab-a63e-80ab63546582
education-02
5
images/education/011/p01.jpg
AB
education
0701a065-926d-48ab-a63e-80ab63546582
education-02
6
images/education/011/p02.jpg
AB
education
0701a065-926d-48ab-a63e-80ab63546582
education-03
7
images/education/003/p01.jpg
AC
education
0701a065-926d-48ab-a63e-80ab63546582
education-03
8
images/education/003/p02.jpg
AC
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
1
images/telecom/022/p04.jpg
AA
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
2
images/telecom/022/p05.jpg
AA
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
3
images/telecom/022/p06.jpg
AA
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
4
images/telecom/022/p08.jpg
AA
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
5
images/telecom/022/p02.jpg
AA
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
6
images/telecom/022/p01.jpg
AA
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
7
images/telecom/022/p03.jpg
AA
telecom
0b08864c-81d0-4672-9f1f-6b6863b8c24a
telecom-01
8
images/telecom/022/p07.jpg
AA
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-01
1
images/education/047/p04.jpg
AA
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-01
2
images/education/047/p02.jpg
AA
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-01
3
images/education/047/p05.jpg
AA
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-01
4
images/education/047/p03.jpg
AA
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-01
5
images/education/047/p01.jpg
AA
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-02
6
images/education/039/p01.jpg
AB
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-02
7
images/education/039/p02.jpg
AB
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-03
8
images/education/046/p02.jpg
AC
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-03
9
images/education/046/p03.jpg
AC
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-03
10
images/education/046/p01.jpg
AC
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-04
11
images/education/025/p01.jpg
AD
education
0c2ceab5-c31f-4f3e-ba76-d21bb387fc57
education-04
12
images/education/025/p02.jpg
AD
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-01
1
images/legal/012/p02.jpg
AA
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-01
2
images/legal/012/p01.jpg
AA
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-02
3
images/legal/010/p01.jpg
AB
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-02
4
images/legal/010/p02.jpg
AB
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-03
5
images/legal/001/p02.jpg
AC
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-03
6
images/legal/001/p01.jpg
AC
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-04
7
images/legal/024/p01.jpg
AD
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-04
8
images/legal/024/p02.jpg
AD
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-05
9
images/legal/029/p01.jpg
AE
legal
0cc9f7cd-b67b-43d4-a25c-55a5a339c13d
legal-05
10
images/legal/029/p02.jpg
AE
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-01
1
images/health/001/p02.jpg
AA
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-01
2
images/health/001/p01.jpg
AA
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-02
3
images/health/013/p01.jpg
AB
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-02
4
images/health/013/p05.jpg
AB
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-02
5
images/health/013/p04.jpg
AB
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-02
6
images/health/013/p06.jpg
AB
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-02
7
images/health/013/p02.jpg
AB
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-02
8
images/health/013/p03.jpg
AB
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-03
9
images/health/006/p03.jpg
AC
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-03
10
images/health/006/p01.jpg
AC
health
0d02f52e-681d-4522-a2f5-47b4b7c95080
health-03
11
images/health/006/p02.jpg
AC
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-01
1
images/education/037/p01.jpg
AA
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-01
2
images/education/037/p02.jpg
AA
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-02
3
images/education/011/p02.jpg
AB
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-02
4
images/education/011/p01.jpg
AB
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-03
5
images/education/044/p01.jpg
AC
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-03
6
images/education/044/p02.jpg
AC
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-03
7
images/education/044/p03.jpg
AC
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-03
8
images/education/044/p04.jpg
AC
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-04
9
images/education/002/p04.jpg
AD
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-04
10
images/education/002/p01.jpg
AD
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-04
11
images/education/002/p02.jpg
AD
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-04
12
images/education/002/p03.jpg
AD
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-05
13
images/education/020/p04.jpg
AE
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-05
14
images/education/020/p01.jpg
AE
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-05
15
images/education/020/p02.jpg
AE
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-05
16
images/education/020/p03.jpg
AE
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-06
17
images/education/012/p02.jpg
AF
education
0d92e263-1358-463a-9893-71fb16ccdcf0
education-06
18
images/education/012/p01.jpg
AF
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-01
1
images/commerce/037/p06.jpg
AA
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-01
2
images/commerce/037/p03.jpg
AA
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-01
3
images/commerce/037/p05.jpg
AA
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-01
4
images/commerce/037/p04.jpg
AA
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-01
5
images/commerce/037/p02.jpg
AA
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-01
6
images/commerce/037/p01.jpg
AA
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
7
images/commerce/041/p05.jpg
AB
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
8
images/commerce/041/p01.jpg
AB
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
9
images/commerce/041/p04.jpg
AB
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
10
images/commerce/041/p02.jpg
AB
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
11
images/commerce/041/p03.jpg
AB
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
12
images/commerce/041/p08.jpg
AB
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
13
images/commerce/041/p07.jpg
AB
commerce
0db4bd1e-de16-4cef-a86c-97d9bca91ce8
commerce-02
14
images/commerce/041/p06.jpg
AB
registration
0ff8b8d2-a374-4fee-bd42-646e19b64041
registration-01
1
images/registration/011/p01.jpg
AA
End of preview. Expand in Data Studio

Khondo: A Multimodal Benchmark for Document Packet Splitting of Bangla Forms

Real Bangla and English government forms assembled into document packets for the packet-splitting task: given a packet of concatenated form pages, recover which pages belong to each source document and restore each document's original page order.

This is the dataset and its schema. The full benchmark pipeline (inference, evaluation, and analysis) lives in the code repository: github.com/mausulazad/Khondo. Paper: arXiv:XXXX.XXXXX.

Khondo provides 1,950 packets, 390 per variant across 5 concatenation schemes, built from 423 real government forms across 14 administrative domains. It is bilingual (Bangla and English) and vision-native: models read the page images directly, without OCR. Each variant is split train/validation/test at the form level, with no form shared across splits.

Variants

Five packet-construction strategies of increasing difficulty. Each packet concatenates pages from one or more source forms; shuffled variants permute the page order.

Variant Composition Page order
mono_seq one document type per packet sequential
mono_rand one document type per packet shuffled
poly_seq multiple document types sequential
poly_rand multiple document types shuffled
poly_int multiple document types round-robin interleaved

Structure

datasets/
  <variant>/ground_truth_json/<train|validation|test>/*.json    # one packet per file (authoritative ground truth)
  <variant>/<train|validation|test>.csv                         # row-per-page flattening (dataset viewer)
  xling/<bn|en>/<variant>/ground_truth_json/test/*.json         # cross-lingual strata (test only, JSON only)
images/
  <domain>/<form>/pNN.jpg                                       # form page images

The five configs above expose the per-variant CSVs to the dataset viewer and load_dataset. The packet ground truth (ground_truth_json/) and the cross-lingual strata (xling/) are JSON files, read directly rather than through load_dataset.

Data formats

Ground-truth JSON

One file per packet, named by doc_id. This is the authoritative ground truth for evaluation.

Field Description
doc_id UUID of the packet
variant one of the five strategies above
total_pages number of pages in the packet
num_subdocuments number of source forms combined into the packet
subdocuments[] the constituent forms, each with doc_type_id (domain), local_doc_id, group_id, page_ordinals (positions within the packet), and pages[]
subdocuments[].pages[] per page: page (index in the packet), original_doc_name, image_path, local_doc_id_page_ordinal (order within the source document)

image_path is relative to the download root, so it resolves directly after snapshot_download.

CSV

A row-per-page flattening of the packets, with columns doc_type, parent_doc_name (the packet UUID), local_doc_id, page, image_path, and group_id. Page order for shuffled variants comes from the ground-truth JSON.

Cross-lingual strata

datasets/xling/ provides size-matched monolingual test packets, Bangla-only (bn) and English-only (en), built with the same construction strategies, 100 packets per language per variant. They hold packet structure fixed while varying language, for measuring how packet-splitting performance shifts across languages.

Load

from huggingface_hub import snapshot_download
import os, glob, json

root = snapshot_download("Mausul/khondo", repo_type="dataset")

gt_dir = os.path.join(root, "datasets", "mono_seq", "ground_truth_json", "test")
packet = json.load(open(glob.glob(os.path.join(gt_dir, "*.json"))[0], encoding="utf-8"))

# image_path is repo-relative and resolves under `root`.
rel = packet["subdocuments"][0]["pages"][0]["image_path"]   # e.g. "images/agriculture/004/p01.jpg"
page_path = os.path.join(root, *rel.split("/"))

The per-variant CSVs load the same way through load_dataset("Mausul/khondo", "mono_seq").

Reproducing the benchmark

Inference, evaluation, and analysis live in the code repository. Download the dataset into the repository root so datasets/ and images/ sit beside the code, or point KHONDO_DATA_ROOT at the download location. Model predictions ship with the code, so the published numbers reproduce without re-running inference. See github.com/mausulazad/Khondo.

Source and attribution

Khondo adapts the packet-splitting methodology of DocSplit (Islam et al., arXiv:2602.15958; amazon/doc_split, CC-BY-NC-4.0) for Bangla and English forms, and adds the cross-lingual strata.

License

Code: MIT. Dataset: CC-BY-NC-4.0, following DocSplit and RVL-CDIP-N-MP.

Citation

@misc{khondo,
  title  = {Khondo: A Multimodal Benchmark for Document Packet Splitting of Bangla Forms},
  author = {XXXX},
  year   = {XXXX},
  eprint = {XXXX.XXXXX},
  archivePrefix = {arXiv}
}
Downloads last month
2

Paper for Mausul/khondo