Datasets:
image_id stringlengths 12 28 | language stringclasses 13
values | script_type stringclasses 2
values | has_lines bool 2
classes | image imagewidth (px) 418 2.64k | width int32 418 2.64k | height int32 96 1.82k | otsl stringlengths 4 322 | n_rows int32 2 43 | n_cols int32 1 27 |
|---|---|---|---|---|---|---|---|---|---|
indic/assamese/1 | assamese | indic | true | 2,210 | 1,394 | FFFLFFFNUUFFUUUNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFN | 10 | 7 | |
indic/assamese/10 | assamese | indic | true | 676 | 1,020 | FFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFN | 13 | 2 | |
indic/assamese/100 | assamese | indic | true | 1,372 | 1,630 | FLLLNEFFFNFFFFNUFFFNFFFFNUFFFNFFFFNUFFFNFLLLNEFFFNFFFFNUFFFNFFFFNUFFFNFFFFNUFFFNFLLLNEFFFNFFFFNUFFFNFFFFNUFFFNFFFFNUFFFN | 24 | 4 | |
indic/assamese/101 | assamese | indic | true | 1,160 | 518 | FFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 6 | 6 | |
indic/assamese/11 | assamese | indic | true | 1,386 | 330 | FFFNFFFNFFFNFFFN | 4 | 3 | |
indic/assamese/12 | assamese | indic | true | 1,388 | 1,088 | FFLFLNUFFFFNFEEFFNFFFFFNFFFFFNFEEFFNFEEFFNFFFFFNFFFFFNFFFFFNFEFEFN | 11 | 5 | |
indic/assamese/13 | assamese | indic | true | 1,758 | 1,130 | FLLLLNFFFFFNFFFFFNEFFFEN | 4 | 5 | |
indic/assamese/14 | assamese | indic | true | 2,250 | 1,048 | FFLLFFFLLFLFNUFFFUUFFFFFUNFFFFFFFFFFFFNFFFFFFFFFFFFNFFFFFFFFFFFFNFFFFFFFFFFFFNFFFFFFFFFFFFNFFFFFFFFFFFFNFFFFFFFFFFFFNFFFFFFFFFFFFNFFFFFFFFFFFFN | 11 | 12 | |
indic/assamese/15 | assamese | indic | true | 974 | 1,224 | FFFFNFEFFNFEFENFEFENFFFENFFFENFFEENFFEENFFEENFFFFNFFFFNFFEFNFFEFNFFEFNFEEFNFEFFNFEFFNFEEFNFEEFNFEEFNFEFENFEFENFEFENFEFENFEFENFEFENFFFFNFFEFNFEEFNFEEFNFEEFNFEEFNFEEFN | 33 | 4 | |
indic/assamese/16 | assamese | indic | true | 1,516 | 954 | FFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNEFFFFNFEEEEN | 11 | 5 | |
indic/assamese/17 | assamese | indic | true | 2,212 | 996 | FLLLLNFFFFFNFFFFFNFFFFFNFLFFEN | 5 | 5 | |
indic/assamese/18 | assamese | indic | true | 556 | 454 | FFNFFNFFNFFNFFNFFN | 6 | 2 | |
indic/assamese/19 | assamese | indic | true | 1,590 | 872 | FFFLLLLLNUUFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFN | 12 | 8 | |
indic/assamese/2 | assamese | indic | true | 1,088 | 744 | FFLFLFNUFFFFUNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 7 | 6 | |
indic/assamese/20 | assamese | indic | true | 1,760 | 1,180 | FFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNUFFFFFNUFFFFNUFFFFNFFFFFFNUFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 14 | 6 | |
indic/assamese/21 | assamese | indic | true | 1,462 | 1,176 | FLLLLNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFLLLLN | 13 | 5 | |
indic/assamese/22 | assamese | indic | true | 2,026 | 1,384 | FFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFN | 6 | 7 | |
indic/assamese/23 | assamese | indic | true | 2,120 | 700 | FFLLLLFNUFFFFFUNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFN | 6 | 7 | |
indic/assamese/24 | assamese | indic | true | 522 | 1,508 | FFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFEENFFFN | 25 | 3 | |
indic/assamese/25 | assamese | indic | true | 1,462 | 802 | FFNFFNFFNFFNFFNFFNFFNFFNFFNFFN | 10 | 2 | |
indic/assamese/26 | assamese | indic | true | 1,464 | 746 | FFFFENFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 10 | 5 | |
indic/assamese/27 | assamese | indic | true | 678 | 1,086 | FFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFEENFFFNFFFNFFFNFFFNFFFNFFFN | 15 | 3 | |
indic/assamese/28 | assamese | indic | true | 1,384 | 830 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 7 | 4 | |
indic/assamese/29 | assamese | indic | true | 1,084 | 540 | FFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 8 | 5 | |
indic/assamese/3 | assamese | indic | true | 1,462 | 868 | EFFFFFNFFFFFFNFFFFFFNFFFFFFNEFFFFFNFFFFFFNFFFFFFNFFFFFFN | 8 | 6 | |
indic/assamese/30 | assamese | indic | true | 688 | 384 | FFNFFNFFNFFN | 4 | 2 | |
indic/assamese/31 | assamese | indic | true | 1,402 | 784 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 8 | 4 | |
indic/assamese/32 | assamese | indic | true | 1,460 | 1,416 | FFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFN | 11 | 7 | |
indic/assamese/33 | assamese | indic | true | 1,860 | 934 | FFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFN | 11 | 7 | |
indic/assamese/34 | assamese | indic | true | 1,590 | 998 | FFFLLLLLNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFN | 12 | 8 | |
indic/assamese/35 | assamese | indic | true | 1,396 | 344 | FFFFNFFFFNFFFFN | 3 | 4 | |
indic/assamese/36 | assamese | indic | true | 1,258 | 298 | FFLFLFLFLNUFFFFFFFFNFFFFFFFFFNFFFFFFFFFN | 4 | 9 | |
indic/assamese/37 | assamese | indic | true | 1,452 | 420 | FFFFNFFFFNFFFFNFFFFN | 4 | 4 | |
indic/assamese/38 | assamese | indic | true | 2,238 | 562 | FFLLLFLLLFLLLNUFFFFFFFFFFFFNFLLLLLLLLLLLLNFFFFFFFFFFFFFNFFFFFFFFFFFFFN | 5 | 13 | |
indic/assamese/39 | assamese | indic | true | 1,166 | 562 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 8 | 4 | |
indic/assamese/4 | assamese | indic | true | 708 | 504 | FFFNFFFNFFFNFFFNFFFNFFFN | 6 | 3 | |
indic/assamese/40 | assamese | indic | true | 1,338 | 1,648 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 10 | 4 | |
indic/assamese/41 | assamese | indic | true | 1,412 | 606 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNEFFFN | 7 | 4 | |
indic/assamese/42 | assamese | indic | true | 2,214 | 848 | FFFFFNFFFFFNFFFFFNFFFFFNFFFFFNEFEEFNFFFFFN | 7 | 5 | |
indic/assamese/43 | assamese | indic | true | 1,336 | 1,088 | FLLLLLNFFFLLFNUUFFFUNEFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 14 | 6 | |
indic/assamese/44 | assamese | indic | true | 1,388 | 678 | FFLLLNUFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 6 | 5 | |
indic/assamese/45 | assamese | indic | true | 1,704 | 1,422 | FLLLLNFFFFFNFFFFENFFFFFNFFFFFNFFFFFNFFFFENFFFFFNFFFFFN | 9 | 5 | |
indic/assamese/46 | assamese | indic | true | 1,228 | 600 | FLLLLLNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 8 | 6 | |
indic/assamese/47 | assamese | indic | true | 2,030 | 638 | FFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFN | 9 | 3 | |
indic/assamese/48 | assamese | indic | true | 1,462 | 898 | FFFNFFFNFFFNFFFNFFFN | 5 | 3 | |
indic/assamese/49 | assamese | indic | true | 1,462 | 1,478 | FFFNUUFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNEFFN | 14 | 3 | |
indic/assamese/5 | assamese | indic | true | 1,228 | 790 | EFLFLNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 7 | 5 | |
indic/assamese/50 | assamese | indic | true | 708 | 1,244 | EFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFN | 17 | 3 | |
indic/assamese/51 | assamese | indic | true | 1,460 | 1,190 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 14 | 4 | |
indic/assamese/52 | assamese | indic | true | 2,026 | 1,410 | FFLLFLFLLLNUFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFNFFFFFFFFFFN | 13 | 10 | |
indic/assamese/53 | assamese | indic | true | 1,262 | 600 | FLLLLLLNFLLLFLLNFFFFFFFNFFFFFFFNFFFFFFFNFFFFFFFN | 6 | 7 | |
indic/assamese/54 | assamese | indic | true | 1,388 | 1,174 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 10 | 4 | |
indic/assamese/55 | assamese | indic | true | 1,460 | 1,002 | FFFFLNUUUFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 13 | 5 | |
indic/assamese/56 | assamese | indic | true | 1,758 | 1,332 | FLLLLNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNEFFFEN | 7 | 5 | |
indic/assamese/57 | assamese | indic | true | 2,258 | 1,556 | FFLFFLLFNUFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFLLLLLLLN | 10 | 8 | |
indic/assamese/58 | assamese | indic | true | 592 | 838 | FFNFFNFFNFFNFFNFFNFFNFFNFFN | 9 | 2 | |
indic/assamese/59 | assamese | indic | true | 1,812 | 1,522 | FFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFN | 21 | 2 | |
indic/assamese/6 | assamese | indic | true | 676 | 262 | FFFNFFFNFFFN | 3 | 3 | |
indic/assamese/60 | assamese | indic | true | 1,460 | 934 | FFFNFFFNFFFNFFFNFFFNEEFNFFFNFFFNEEFNEEFN | 10 | 3 | |
indic/assamese/61 | assamese | indic | true | 1,462 | 476 | FNFNFNFNFNFN | 6 | 1 | |
indic/assamese/62 | assamese | indic | true | 1,088 | 830 | FFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFEN | 10 | 3 | |
indic/assamese/63 | assamese | indic | true | 2,026 | 1,144 | FFFFFFFFFFFFFNFFFFFFFFFFFFFNUFFFFFFFFFFFFNUFFFFFFFFFFFFNUFFFFFFFFFFFFNUFFFFFFFFFFFFNFFFFFFFFFFFFFNUFFFFFFFFFFFFNUFFFFFFFFFFFFUFFFFFFFFFFFFFNUFFFFFFFFFFFFNFFFFFFFFFFFFFNUFFFFFFFFFFFFNUFFFFFFFFFFFFNUFFFFFFFFFFFFNUFFFFFFFFFFFFN | 15 | 27 | |
indic/assamese/64 | assamese | indic | true | 1,340 | 804 | FLLFLNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 11 | 5 | |
indic/assamese/65 | assamese | indic | true | 2,212 | 540 | FFFFNFFFFNFFFFNFFFFNFFFFN | 5 | 4 | |
indic/assamese/66 | assamese | indic | true | 708 | 442 | FFFNFFFNFFFNFFFNFFFNFFFN | 6 | 3 | |
indic/assamese/67 | assamese | indic | true | 1,368 | 534 | FFFFLLLNFFFFFFFNUFFFFFFNFEFFFFFNUFFFFFFNFEFFFFFNUFFFFFFN | 7 | 7 | |
indic/assamese/68 | assamese | indic | true | 1,508 | 1,294 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 7 | 4 | |
indic/assamese/69 | assamese | indic | true | 1,386 | 418 | FFFNFFFNFFFNFFFN | 4 | 3 | |
indic/assamese/7 | assamese | indic | true | 724 | 828 | FLNFFNFFNFFNFFNFFNFFNFFNFFNFFNFFN | 11 | 2 | |
indic/assamese/70 | assamese | indic | true | 1,590 | 838 | FFFLLLNUUFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFEEEENFFFFFFNFFFFFFNEFFFFFN | 12 | 6 | |
indic/assamese/71 | assamese | indic | true | 1,396 | 542 | FFNUFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 6 | 5 | |
indic/assamese/72 | assamese | indic | true | 1,116 | 670 | FLLLNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 7 | 4 | |
indic/assamese/73 | assamese | indic | true | 1,222 | 932 | FLLLLLLNFLLFLLLNFFLFFFFNUFFUUUUNFFFFFFFNFFFFFFFNFFFFFFFNFFLFFFFNUFFUUUUNFFFFFFFNFFFFFFFNFFFFFFFN | 12 | 7 | |
indic/assamese/74 | assamese | indic | true | 1,400 | 476 | FFNFFNFFNFFNFFN | 5 | 2 | |
indic/assamese/75 | assamese | indic | true | 2,212 | 486 | FFLLLFFFFNUFFFFUUUUNFFFFFFFFFNFFFFFFFFFNFFFFFFFFFNFFFFFFFFFN | 6 | 9 | |
indic/assamese/76 | assamese | indic | true | 1,488 | 1,262 | FFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFN | 15 | 3 | |
indic/assamese/77 | assamese | indic | true | 1,460 | 958 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNEFFFNEFFFNEFLFN | 10 | 4 | |
indic/assamese/78 | assamese | indic | true | 1,388 | 854 | FFFFFNFFFFFNFFFFFNFFFFFN | 4 | 5 | |
indic/assamese/79 | assamese | indic | true | 1,460 | 1,498 | FFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFFFNFEFN | 10 | 3 | |
indic/assamese/8 | assamese | indic | true | 696 | 650 | FLNFFNFFNFFNFFNFFN | 6 | 2 | |
indic/assamese/80 | assamese | indic | true | 934 | 1,556 | FFLLFFNUFFFUUNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFEENFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 25 | 6 | |
indic/assamese/81 | assamese | indic | true | 1,336 | 1,088 | FLLLLLNFFFLLFNUUFFFUNEFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 14 | 6 | |
indic/assamese/82 | assamese | indic | true | 2,216 | 1,496 | FFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFEENFFFEEN | 14 | 5 | |
indic/assamese/83 | assamese | indic | true | 1,476 | 1,010 | FFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFLLLLN | 11 | 5 | |
indic/assamese/84 | assamese | indic | true | 1,484 | 1,500 | FFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 12 | 5 | |
indic/assamese/85 | assamese | indic | true | 1,460 | 424 | FLNFFNFFNFFNFFN | 5 | 2 | |
indic/assamese/86 | assamese | indic | true | 1,228 | 1,518 | FLLLLNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 12 | 5 | |
indic/assamese/87 | assamese | indic | true | 1,108 | 1,430 | FLLLLNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFNEFFFENFLLLLNFFFFFNFLLLLNFFFFFN | 15 | 5 | |
indic/assamese/88 | assamese | indic | true | 1,336 | 982 | FLLLLLNEFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 8 | 6 | |
indic/assamese/89 | assamese | indic | true | 1,396 | 358 | FFFFFNFFFFFNFFFFFN | 3 | 5 | |
indic/assamese/9 | assamese | indic | true | 1,336 | 314 | FFNFFNFFNFFN | 4 | 2 | |
indic/assamese/90 | assamese | indic | true | 1,162 | 1,188 | FFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 12 | 4 | |
indic/assamese/91 | assamese | indic | true | 1,388 | 718 | FFFFFNFFFFFNFFFFFNFFFFFNFFFFFNFFFFFN | 6 | 5 | |
indic/assamese/92 | assamese | indic | true | 696 | 598 | FLLLNEFFFNFFFFNFFFFNFFFFNFFFFNFFFFNFFFFN | 8 | 4 | |
indic/assamese/93 | assamese | indic | true | 1,334 | 552 | EFFFNFFFFNFFFFNFFFFN | 4 | 4 | |
indic/assamese/94 | assamese | indic | true | 732 | 284 | FFFFFNFFFFFNFFFFFNFFFFFN | 4 | 5 | |
indic/assamese/95 | assamese | indic | true | 2,224 | 992 | FFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFN | 9 | 6 | |
indic/assamese/96 | assamese | indic | true | 1,590 | 600 | FFFLLLLLNEFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFNFFFFFFFFN | 6 | 8 | |
indic/assamese/97 | assamese | indic | true | 1,270 | 846 | FLLLLLLLLNEFLLLFLLLNUFFFFFFFFNFFFFFFFFFNFFFFFFFFFNFFFFFFFFFNFFFFFFFFFNFFFFFFFFFNFFFFFFFFFNFFFFFFFFFN | 10 | 9 | |
indic/assamese/98 | assamese | indic | true | 1,476 | 1,096 | FFFFLFNUUUFFUNFFFFFFNFEEEEENFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFFFFFFNFLLLLLN | 13 | 6 |
MUSTARD
A structured repackaging of badrivishalk/MUSTARD that surfaces the OTSL annotations and language metadata as proper dataset columns.
MUSTARD (Multilingual Scanned and Scene Table Structure Recognition Dataset) contains 1,429 table images across 13 languages, annotated with OTSL (Optimized Table Structure Language) sequences for table structure recognition. Introduced by the SPRINT paper (ICDAR 2024).
This is an evaluation-only benchmark (test split only, no train).
Why this version
The original upload uses imagefolder format, which means the OTSL annotations in merged.txt are not exposed as columns in the dataset viewer or via load_dataset. Loading it returns only {"image": ...} with no annotation access.
This version gives you:
{
"image_id": "indic/assamese/1", # stable identifier
"image": <PIL Image>,
"width": 2210,
"height": 1394,
"language": "assamese", # 13 values
"script_type": "indic", # "indic" or "scenetext"
"has_lines": True, # scenetext: whether grid lines visible
"otsl": "FFFLFFFNUUFFUUUN...",
"n_rows": 10,
"n_cols": 7,
}
Schema
| Field | Type | Description |
|---|---|---|
image_id |
string | Stable path-derived identifier (e.g. indic/assamese/1, scenetext/chinese_lines/1) |
image |
Image | Table image (PNG) |
width |
int32 | Image width in pixels |
height |
int32 | Image height in pixels |
language |
string | One of 13 languages (see table below) |
script_type |
string | "indic" for printed/scanned Indic-script tables; "scenetext" for scene-text tables |
has_lines |
bool | For scenetext: whether the table has visible grid lines. Always True for indic. |
otsl |
string | OTSL annotation sequence (see format below) |
n_rows |
int32 | Number of table rows decoded from OTSL |
n_cols |
int32 | Number of table columns decoded from OTSL (max row width) |
Language distribution
| Language | Script type | Count |
|---|---|---|
| assamese | indic | 101 |
| bengali | indic | 100 |
| chinese | indic + scenetext | 207 |
| english | scenetext | 109 |
| gujarati | indic | 101 |
| hindi | indic | 101 |
| kannada | indic | 101 |
| malayalam | indic | 102 |
| oriya | indic | 101 |
| punjabi | indic | 102 |
| tamil | indic | 100 |
| telugu | indic | 102 |
| urdu | indic | 102 |
| Total | 1,429 |
Scenetext subset: 111 with visible grid lines (has_lines=True), 103 without (has_lines=False).
OTSL format
OTSL (Optimized Table Structure Language) encodes table structure as a flat token sequence. Rows are delimited by N; within each row, each character is one cell:
| Token | Meaning |
|---|---|
F |
Regular cell (no span) |
L |
Cell spanning left (continuation of the cell immediately to its left) |
U |
Cell spanning up (continuation of the cell directly above) |
E |
Cell spanning both left and up (interior merge corner) |
X |
Empty/non-data cell |
Example: FFLNFFN = a 2-row, 3-column table where row 1 has a merged cell in columns 2-3 (F F L) and row 2 is all regular cells (F F).
Decode OTSL to an HTML table
def otsl_to_html(otsl: str) -> str:
rows = [r for r in otsl.split("N") if r]
n_cols = max(len(r) for r in rows)
# First pass: compute colspan/rowspan
grid = [[None] * n_cols for _ in range(len(rows))]
spans = {}
for r, row in enumerate(rows):
for c, tok in enumerate(row):
if tok == "F":
spans[(r, c)] = [1, 1]
grid[r][c] = (r, c)
elif tok == "L":
origin = grid[r][c - 1]
spans[origin][1] += 1
grid[r][c] = origin
elif tok == "U":
origin = grid[r - 1][c]
spans[origin][0] += 1
grid[r][c] = origin
elif tok == "E":
origin = grid[r - 1][c - 1]
grid[r][c] = origin
# Second pass: emit HTML
html = ["<table>"]
for r, row in enumerate(rows):
html.append(" <tr>")
for c in range(len(row)):
if grid[r][c] == (r, c):
rs, cs = spans[(r, c)]
attrs = ""
if rs > 1:
attrs += f' rowspan="{rs}"'
if cs > 1:
attrs += f' colspan="{cs}"'
html.append(f" <td{attrs}></td>")
html.append(" </tr>")
html.append("</table>")
return "\n".join(html)
Usage
from datasets import load_dataset
ds = load_dataset("rootsautomation/MUSTARD", split="test")
# Filter to a single language
hindi = ds.filter(lambda x: x["language"] == "hindi")
# Filter to scenetext with lines
scene_lines = ds.filter(lambda x: x["script_type"] == "scenetext" and x["has_lines"])
# Access a sample
row = ds[0]
print(row["language"], row["n_rows"], "x", row["n_cols"])
row["image"].show()
License
MIT. Source data curated by the IIT Bombay LEAP OCR Team. See badrivishalk/MUSTARD for the original release.
Citation
@inproceedings{sprint2024,
title = {SPRINT: Script-agnostic Structure Recognition in Tables},
booktitle = {Document Analysis and Recognition -- ICDAR 2024},
year = {2024},
note = {arXiv:2503.11932}
}
- Downloads last month
- -