Dataset Viewer
Auto-converted to Parquet Duplicate
doc_id
stringlengths
7
18
text
stringlengths
76
26k
damaged_text
stringlengths
85
31.3k
headings
stringlengths
179
48.3k
n_headings
int64
2
502
max_depth
int64
1
5
scheme_name
stringclasses
4 values
source
stringclasses
1 value
license
stringclasses
1 value
kouyoubun-000
○○に関する規程 第1 職員に係る手続 前項の規定は、特別の事情がある場合には適用しない。 第2 緊急時の報告義務 この規程は、業務の適正かつ円滑な運営を図ることを目的とする。 担当者は、遅滞なく必要な措置を講じなければならない。
○○に関する規程 第1 職員に係る手続 前 項 の 規 定は、特別の事情がある場合には適 用しない。 第2 緊急時の報告義務 この規程は、業務の適正かつ円滑な運営を図ることを目的とする。 担当者は、遅滞なく必要な措置を講じなければならな い。
[{"line": 1, "depth": 1, "kind": "dai_num", "value": 1, "marker": "第1", "title": "職員に係る手続"}, {"line": 3, "depth": 1, "kind": "dai_num", "value": 2, "marker": "第2", "title": "緊急時の報告義務"}]
2
1
kouyoubun
synthetic
synthetic-CC0
kouyoubun-002
○○に関する規程 第1 職員の管理 委員会は、必要に応じて関係者に報告を求めることができる。 この基準は、公表の日から施行する。 1. 緊急時の実施体制 この基準は、公表の日から施行する。 委員会は、必要に応じて関係者に報告を求めることができる。 (1) 手続 この規程は、業務の適正かつ円滑な運営を図ることを目的とする。 ア 外部委託の点検 関係書類は、五年間保存するものとする。 (ア) 緊急時の評価方法 関係書類は、五年間保存するものとする。 (イ) 外部委託の報告義務 担当者は、遅滞なく必要な措置を講じなければならない。 (ウ) 安全衛生の審査 Q. 申請はどのように扱われますか。 A. 担当者は、遅滞なく必要な措置を講じなけれ...
○ ○ に 関 する規程 第1 職員の管理 委員会は、必要に応じて関係者に報告を求めることができる。 この基準(しょり)は、公表の日から施行する。 1. 緊急時の実施体制 この基準は、公表の日から施行する。 委員会は、必要に応じて関係者に報告を求めることができる。 (1) 手続 この規程(きてい)は、業務の適正かつ円滑な運営を 図ることを目的とする。 ア 外部委託(ほぞん)の点検 関係書類は、五年間保存するものとする。 (ア) 緊急時の評価方法 ○○法人 内部規程集 - 1 - 関係書類は、五年間保存するものとする。 (イ) 外部委託の報告義務 担当者は、遅滞なく必要な措置を講じなければならない。 (ウ) 安全衛生の審査 Q. 申...
[{"line": 1, "depth": 1, "kind": "dai_num", "value": 1, "marker": "第1", "title": "職員の管理"}, {"line": 4, "depth": 2, "kind": "arabic_dot", "value": 1, "marker": "1.", "title": "緊急時の実施体制"}, {"line": 7, "depth": 3, "kind": "paren_num", "value": 1, "marker": "(1)", "title": "手続"}, {"line": 9, "depth": 4, "kind": "katakana",...
137
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-003
"□□に関する規程\n第1 業務の審査\n表6 区分別の一覧\n区分\t内容\t備考\n(...TRUNCATED)
"□□に関する規程\n第 1 業 務の審査\n表6 区分別の一覧\n区分\t内容\t(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
354
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-004
"△△に関する規程\n第1 職員の責務\n表9 区分別の一覧\n区分\t内容\t備考\n(...TRUNCATED)
"△△に関する規程(しょり)\n第1 職員(ほぞん)の責務\n表9 区分別の(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
293
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-006
"○○に関する規程\n第1 職員の管理\nこの規程は、業務の適正かつ円滑な運(...TRUNCATED)
"○○に関する規程\n第1 職員の管理\nこの規程は、業務の適正かつ円滑な運(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
175
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-007
"□□に関する規程\n第1 外部委託の基準\nこの基準は、公表の日から施行す(...TRUNCATED)
"□□に関する規程\n第1 外部委託(きじゅん)の基準\nこの基準は、公表の(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
279
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-009
"□□に関する規程\n第1 目的\n担当者は、遅滞なく必要な措置を講じなけれ(...TRUNCATED)
"□ □ に 関 する規程(きじゅん)\n第 1 目 的(ほぞん)\n担当者(しょ(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
133
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-011
"△△に関する規程\n第1 文書の実施体制\n表9 区分別の一覧\n区分\t内容\t備(...TRUNCATED)
"△ △ に 関 する規程\n第1 文書(きてい)の実施体制\n表 9 区 分別の一(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
316
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-013
"○○に関する規程\n第1 文書の審査\n委員会は、必要に応じて関係者に報告(...TRUNCATED)
"○ ○ に 関 する規程\n第1 文書(ほぞん)の審査\n委員会は、必要に応じ(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
145
5
kouyoubun
synthetic
synthetic-CC0
kouyoubun-014
"□□に関する規程\n第1 情報システムの審査\n関係書類は、五年間保存する(...TRUNCATED)
"□□に関する規程\n第1 情報システムの審査\n関係書類(ほぞん)は、(...TRUNCATED)
"[{\"line\": 1, \"depth\": 1, \"kind\": \"dai_num\", \"value\": 1, \"marker\": \"第1\", \"title\": (...TRUNCATED)
115
5
kouyoubun
synthetic
synthetic-CC0
End of preview. Expand in Data Studio

🧱 Rebar Structure

A corpus for restoring the heading hierarchy of Japanese documents from flat text and for evaluating structure-aware chunking. Each record is a flattened document, its gold heading tree (positions + depths), and a damaged variant simulating PDF/text extraction.

Why it exists

The same numbering marker means different depths in different documents (1. is top-level in a memo, second-level under 第3章), so hierarchy must be inferred at the document level. This dataset is built to measure exactly that, and — crucially — to measure generalization to numbering schemes held out of training (the hard split).

Splits

Split What Note
train seen numbering schemes 公用文 / 法令 / 規程 / simple-numeric chains
test seen schemes, different documents document-level split, no leakage
hard UNSEEN numbering schemes held-out chains, incl. one that contradicts the canonical prior (paren shallower than arabic-dot)

Fields

Field Type Description
doc_id string unique id
text string flattened plain text; visible numbering preserved
damaged_text string text-extraction-damaged variant (mid-line breaks, header/footer, spacing, ruby, broken tables, page numbers, width jitter)
headings string (JSON) gold list of {line, depth, kind, value, marker, title}
n_headings int number of gold headings
max_depth int deepest gold level
scheme_name string numbering scheme id
source string synthetic or a local source path
license string per-document license
import json
from datasets import load_dataset
ds = load_dataset("NagaYu/rebar-structure")
ex = ds["hard"][0]
headings = json.loads(ex["headings"])   # gold hierarchy
print(ex["scheme_name"], len(headings), "headings, max depth", ex["max_depth"])

Provenance & license

The published corpus is synthetic and CC0, generated by rebar.synth with fully controlled gold trees — so every benchmark reproduces from the repository alone, with no redistribution concerns.

Real documents are not redistributed here. To include licensed real Markdown/HTML, use scripts/build_dataset.py with --redact, which ships only structure labels + minimal fragments (never full source bodies). Always verify a source's redistribution terms before adding it.

Intended use & limitations

Built for hierarchy-restoration and chunking research. Synthetic text is regulation-flavoured but not real regulations; absolute numbers transfer best as relative comparisons between methods. Heavily damaged, unseen-scheme documents are the hardest case and are reported honestly in the benchmarks.

Downloads last month
20

Models trained or fine-tuned on NagaYu/rebar-structure