rain1024 commited on
Commit
93de8d2
·
1 Parent(s): 007dd4d

fix(data): corrected 2026 split as verified in-force snapshot (issue #1035)

Browse files

- 2026: rebuilt to 303 verified in-force laws, de-duplicated to one entry per
So hieu and validated against the official vbpl.vn database (was 318 with
80 duplicate + 37 fabricated/non-existent entries)
- 2026_01: preserve the original January 2026 release (318) for reproducibility
- metadata/2026_sources.json: per-document provenance links from 6 official and
reference sources (vbpl, vanban.chinhphu, congbao, vietlaw.quochoi, thuvienphapluat, luatvietnam)
- README: document the corrected 2026 split, the 2026_01 archive, and provenance

README.md CHANGED
@@ -16,18 +16,23 @@ tags:
16
  - legislation
17
  pretty_name: Vietnamese Legal Corpus
18
  dataset_info:
19
- splits:
20
- - name: "2026"
21
- num_examples: 318
22
- - name: "2023"
23
- num_examples: 208
24
- - name: "2021"
25
- num_examples: 110
 
 
 
26
  configs:
27
  - config_name: default
28
  data_files:
29
  - split: "2026"
30
  path: data/2026-*
 
 
31
  - split: "2023"
32
  path: data/2023-*
33
  - split: "2021"
@@ -47,9 +52,10 @@ This dataset contains Vietnamese legal documents including the Constitution, Cod
47
 
48
  | Split | Documents | Description |
49
  |-------|-----------|-------------|
50
- | 2021 | 110 | Original corpus with full text |
51
- | 2023 | 208 | Expanded corpus with processed text |
52
- | 2026 | 318 | Latest corpus with 2022-2025 laws |
 
53
 
54
  ### Document Types
55
 
@@ -86,6 +92,44 @@ The 2026 split includes laws passed by the 15th National Assembly:
86
  | content | string | Full text content |
87
  | content_length | int32 | Character count |
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  ## Usage
90
 
91
  ```python
@@ -107,16 +151,19 @@ land_law = ds_2026.filter(lambda x: "Đất đai" in x["title"])
107
 
108
  ## Statistics
109
 
110
- | Metric | 2021 | 2023 | 2026 |
111
- |--------|------|------|------|
112
- | Documents | 110 | 208 | 318 |
113
- | Total Characters | ~14M | ~21M | ~24M |
114
- | Codes | 6 | 6 | 6 |
115
- | Laws | 104 | 202 | 312 |
116
 
117
  ## Data Source
118
 
119
- Documents were collected from [Thu Vien Phap Luat](https://thuvienphapluat.vn/), the official Vietnamese legal document database.
 
 
 
 
120
 
121
  ## References
122
 
 
16
  - legislation
17
  pretty_name: Vietnamese Legal Corpus
18
  dataset_info:
19
+ - config_name: default
20
+ splits:
21
+ - name: "2026"
22
+ num_examples: 303
23
+ - name: "2026_01"
24
+ num_examples: 318
25
+ - name: "2023"
26
+ num_examples: 208
27
+ - name: "2021"
28
+ num_examples: 110
29
  configs:
30
  - config_name: default
31
  data_files:
32
  - split: "2026"
33
  path: data/2026-*
34
+ - split: "2026_01"
35
+ path: data/2026_01-*
36
  - split: "2023"
37
  path: data/2023-*
38
  - split: "2021"
 
52
 
53
  | Split | Documents | Description |
54
  |-------|-----------|-------------|
55
+ | 2021 | 110 | Original corpus with full text |
56
+ | 2023 | 208 | Expanded corpus with processed text |
57
+ | 2026_01 | 318 | Original 2026 release (Jan 2026) — superseded ([issue #1035](https://github.com/undertheseanlp/underthesea/issues/1035)) |
58
+ | 2026 | 303 | Verified in-force snapshot (corrected, validated against vbpl.vn) |
59
 
60
  ### Document Types
61
 
 
92
  | content | string | Full text content |
93
  | content_length | int32 | Character count |
94
 
95
+ ## The `2026` split — corrected (issue #1035)
96
+
97
+ An earlier build of the 2026 corpus was found to contain duplicated and mismatched entries
98
+ ([issue #1035](https://github.com/undertheseanlp/underthesea/issues/1035)): many documents carried
99
+ a header *Số hiệu* that did not match their title, some titles were fabricated, and several bodies
100
+ were near-duplicates of unrelated laws.
101
+
102
+ The **`2026`** split has been **rebuilt as a verified in-force snapshot**: every entry is a currently
103
+ in-force Law/Code (status *Còn hiệu lực* or *Hết hiệu lực một phần*), de-duplicated to one entry per
104
+ *Số hiệu*, with full text re-sourced and validated against the official **vbpl.vn** national legal
105
+ database (Ministry of Justice). The original January 2026 release is preserved unchanged as
106
+ **`2026_01`** for reproducibility.
107
+
108
+ | | `2026_01` (original) | `2026` (corrected) |
109
+ |---|---|---|
110
+ | Entries | 318 | **303** |
111
+ | Duplicate Số hiệu | 80 | 0 |
112
+ | Fabricated / non-existent | 37 | 0 |
113
+ | Coverage of in-force laws | 188 | 304 |
114
+
115
+ ```python
116
+ ds = load_dataset("undertheseanlp/UTS_VLC", split="2026") # 303 verified in-force laws
117
+ raw = load_dataset("undertheseanlp/UTS_VLC", split="2026_01") # 318, original Jan 2026 (issue #1035)
118
+ ```
119
+
120
+ ### Provenance — `metadata/2026_sources.json`
121
+
122
+ Each corrected entry is cross-referenced to direct links from official and reference sources
123
+ (≈8 links/entry on average), provided as a separate metadata file keyed by `id` / `doc_num`:
124
+
125
+ | Field | Source | |
126
+ |---|---|---|
127
+ | `url_vbpl`, `url_vbpl_pdf`, `url_vbpl_luocdo` | vbpl.vn (Bộ Tư pháp) | OFFICIAL — full text, PDF, amendment map |
128
+ | `url_vanban_chinhphu`, `url_vanban_pdf` | vanban.chinhphu.vn (Chính phủ) | OFFICIAL — document page, signed PDF |
129
+ | `url_congbao_pdf` | congbao.chinhphu.vn (Công báo) | OFFICIAL — gazette PDF |
130
+ | `url_quochoi` | vietlaw.quochoi.vn (Quốc hội) | OFFICIAL — full text |
131
+ | `url_thuvienphapluat`, `url_luatvietnam` | thuvienphapluat.vn, luatvietnam.vn | reference (private) |
132
+
133
  ## Usage
134
 
135
  ```python
 
151
 
152
  ## Statistics
153
 
154
+ | Metric | 2021 | 2023 | 2026_01 | 2026 |
155
+ |--------|------|------|------|------|
156
+ | Documents | 110 | 208 | 318 | 303 |
157
+ | Codes | 6 | 6 | 6 | 6 |
158
+ | Laws | 104 | 202 | 312 | 297 |
 
159
 
160
  ## Data Source
161
 
162
+ The corrected `2026` split is sourced and verified against Vietnam's official legal databases
163
+ **vbpl.vn** (Cơ sở dữ liệu quốc gia về pháp luật, Ministry of Justice), **congbao.chinhphu.vn**
164
+ (Official Gazette), **vanban.chinhphu.vn** (Government), and **vietlaw.quochoi.vn** (National
165
+ Assembly) — with per-document provenance links in `metadata/2026_sources.json`. The original
166
+ `2021`/`2023`/`2026_01` splits were collected from [Thu Vien Phap Luat](https://thuvienphapluat.vn/).
167
 
168
  ## References
169
 
data/2026-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:334f08ef06d09f2ab47827f353936c0b8d47ce994fe143792b9a80840f07e404
3
- size 9460623
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f62f06bcf4345dd59de4f79074673b254081494ee9404928d9d932ca4fb94d3
3
+ size 9722593
data/2026_01-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:334f08ef06d09f2ab47827f353936c0b8d47ce994fe143792b9a80840f07e404
3
+ size 9460623
metadata/2026_sources.json ADDED
The diff for this file is too large to render. See raw diff