tmquan commited on
Commit
d8bc5bc
·
verified ·
1 Parent(s): d4a220a

Vietnamese National Legal Database (vbpl.vn) corpus with structure + embedding layers

Browse files
README.md CHANGED
@@ -60,10 +60,10 @@ configs:
60
 
61
  | Chỉ số · Metric | Giá trị · Value |
62
  |---|---:|
63
- | Văn bản công bố · Documents | **158,821** |
64
  | Tổng số bản ghi đầu vào · Raw extract rows | 158,822 |
65
- | Loại bỏ vì rỗng · Dropped (empty body) | 1 |
66
- | Có cấu trúc · With structure layer | 158,821 |
67
  | Có tệp đính kèm · With downloaded attachment | 0 |
68
  | Trung vị ký tự · Median chars / doc | 6,378 |
69
  | Trung vị trang · Median pages / doc | – |
@@ -82,30 +82,95 @@ cities, mostly People's Council / People's Committee output).
82
  | Value | Count | Share |
83
  |---|---:|---:|
84
  | `dia_phuong` | 104,345 | 65.7% |
85
- | `trung_uong` | 54,476 | 34.3% |
86
 
87
- ## Loại văn bản · `doc_type`
88
 
 
 
 
 
 
89
  Loại văn bản theo Luật Ban hành Văn bản Quy phạm Pháp luật năm
90
- 2015 — *Nghị định / Thông / Quyết định / Nghị quyết / Chỉ thị /
91
- Lệnh / Pháp lệnh / Luật / Văn bản hợp nhất / Đính chính ...*
92
- The document type tags follow the categories in Vietnam's 2015 Law
93
- on Promulgation of Legal Documents.
 
 
 
 
 
 
 
 
 
 
94
 
95
  | Value | Count | Share |
96
  |---|---:|---:|
97
- | `{'id': '0a5362e8-cdca-436e-96cd-979598df3b16', 'name': 'Quyết định', 'code': '', 'parentCode': None, 'parentName': None}` | 82,118 | 51.7% |
98
- | `{'id': '044d941c-40de-45b9-ae84-51f5a730bfe0', 'name': 'Nghị quyết', 'code': 'NQ', 'parentCode': None, 'parentName': None}` | 24,851 | 15.6% |
99
- | `{'id': '178c63a9-73ff-4fd4-9d91-18d690520090', 'name': 'Thông tư', 'code': 'TT', 'parentCode': None, 'parentName': None}` | 11,155 | 7.0% |
100
- | `{'id': '9979b9a4-9e4c-4a14-a990-6d86e11b75c5', 'name': 'Bản dịch văn bản', 'code': 'BD'}` | 10,255 | 6.5% |
101
- | `{'id': '0045710b-eb54-4ce5-b511-76aa23f3021b', 'name': 'Chỉ thị', 'code': 'CThi', 'parentCode': None, 'parentName': None}` | 7,654 | 4.8% |
102
- | `{'id': '178c63a9-73ff-4fd4-9d91-18d690520090', 'name': 'Thông tư', 'code': 'TT'}` | 4,624 | 2.9% |
103
- | `unknown` | 4,522 | 2.8% |
104
- | `{'id': '0d08b84c-7de7-4800-8760-2a68265e7890', 'name': 'Nghị định', 'code': 'NĐ', 'parentCode': None, 'parentName': None}` | 3,357 | 2.1% |
105
- | `{'id': '0e4f2bde-5ccb-4001-9e0a-b43f51cca5e8', 'name': 'Thông tư liên tịch', 'code': 'TTLT_TW', 'parentCode': None, 'parentName': None}` | 3,289 | 2.1% |
106
- | `{'id': '26b8a9ff-1b59-4c57-9605-f2ad4ed7c324', 'name': 'Văn bản hợp nhất', 'code': 'VBHN'}` | 1,275 | 0.8% |
107
- | `{'id': '0d08b84c-7de7-4800-8760-2a68265e7890', 'name': 'Nghị định', 'code': 'NĐ'}` | 1,198 | 0.8% |
108
- | `{'id': '1e0386d2-9395-4a0f-9d04-18a9e01f0ca7', 'name': 'Sắc lệnh', 'code': 'LVB-SLe', 'parentCode': None, 'parentName': None}` | 979 | 0.6% |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  ## Cơ quan ban hành · Issuing agency
111
 
@@ -116,6 +181,7 @@ chia khá đều phần `dia_phuong`.
116
  | Value | Count | Share |
117
  |---|---:|---:|
118
  | `unknown` | 158,821 | 100.0% |
 
119
 
120
  ## Năm ban hành · Year of issue
121
 
@@ -124,7 +190,9 @@ không cung cấp được trường này. — Year distribution from
124
  `ngay_ban_hanh`; null when the source portal didn't expose the issue
125
  date.
126
 
127
- _(no year metadata in this slice)_
 
 
128
 
129
  ## Nguồn nội dung · Body provenance
130
 
@@ -141,6 +209,7 @@ otherwise.
141
  |---|---:|---:|
142
  | `body_html` | 143,470 | 90.3% |
143
  | `shell_html` | 15,351 | 9.7% |
 
144
 
145
  ## Lược đồ bảng `documents` · `documents` schema
146
 
@@ -155,7 +224,9 @@ The parquet has three families of columns:
155
  | `source` | string | Source host, always `vbpl.vn`. |
156
  | `source_url` / `api_url` | string | Deep link back to the portal page / the underlying gateway API. |
157
  | `title` | string | Document title (e.g. `"Nghị định 43/2026/NĐ-CP sửa đổi …"`). |
158
- | `doc_type` | string | Vietnamese document type (`Luật`, `Nghị định`, `Thông `, `Quyết định`, `Nghị quyết`, ). |
 
 
159
  | `so_hieu` | string | Document number (e.g. `43/2026/NĐ-CP`). |
160
  | `ngay_ban_hanh` | string | Issue date, ISO `YYYY-MM-DD`. |
161
  | `year` | int32 | Year extracted from `ngay_ban_hanh`. |
@@ -201,7 +272,7 @@ for sec in structure.get("sections", []):
201
 
202
  ## Trực quan hoá embedding · Embedding visualization
203
 
204
- Mỗi điểm là một văn bản pháp luật; toạ độ là vector embedding 2048-D từ `nvidia/llama-nemotron-embed-1b-v2` chiếu xuống 2D bằng t-SNE / UMAP, cụm bằng HDBSCAN. — Each dot is one legal document; coordinates are the 2D projection of a 2048-D embedding from `nvidia/llama-nemotron-embed-1b-v2` (t-SNE / UMAP), with HDBSCAN cluster ids.
205
 
206
  ### TSNE colored by `scope`
207
 
@@ -219,6 +290,22 @@ Mỗi điểm là một văn bản pháp luật; toạ độ là vector embeddin
219
 
220
  ![UMAP colored by `doc_type`](./embedding-doc-type-umap.png)
221
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  ### TSNE colored by `year`
223
 
224
  ![TSNE colored by `year`](./embedding-year-tsne.png)
@@ -269,7 +356,7 @@ All five layers are deterministic and re-runnable; re-running any
269
  stage with the same `--limit` is a no-op (each stage skips
270
  already-produced outputs).
271
 
272
- Captured: `2026-05-19T22:08:45.641679+00:00`.
273
 
274
  ## Nguồn · Source
275
 
 
60
 
61
  | Chỉ số · Metric | Giá trị · Value |
62
  |---|---:|
63
+ | Văn bản công bố · Documents | **158,822** |
64
  | Tổng số bản ghi đầu vào · Raw extract rows | 158,822 |
65
+ | Loại bỏ vì rỗng · Dropped (empty body) | 0 |
66
+ | Có cấu trúc · With structure layer | 158,822 |
67
  | Có tệp đính kèm · With downloaded attachment | 0 |
68
  | Trung vị ký tự · Median chars / doc | 6,378 |
69
  | Trung vị trang · Median pages / doc | – |
 
82
  | Value | Count | Share |
83
  |---|---:|---:|
84
  | `dia_phuong` | 104,345 | 65.7% |
85
+ | `trung_uong` | 54,477 | 34.3% |
86
 
87
+ ## Loại văn bản · `doc_type` + `legal_type`
88
 
89
+ Mỗi văn bản được gắn cả mã ngắn (`doc_type`, ví dụ `QĐ`, `NĐ`,
90
+ `CT`) lẫn tên đầy đủ tiếng Việt (`legal_type`, ví dụ `Quyết định`,
91
+ `Nghị định`, `Chỉ thị`). Mã ngắn được chuẩn hoá theo
92
+ [`packages.datasites.vbpl.codes`](https://github.com/tmquan/ViLA/blob/main/packages/datasites/vbpl/codes.py)
93
+ nên khớp với phần đầu trong số hiệu (`43/2026/NĐ-CP` → `NĐ`).
94
  Loại văn bản theo Luật Ban hành Văn bản Quy phạm Pháp luật năm
95
+ 2015 — *Hiến pháp / Bộ luật / Luật / Pháp lệnh / Lệnh / Nghị quyết /
96
+ Nghị định / Quyết định / Thông / Chỉ thị / Sắc lệnh / Văn bản
97
+ hợp nhất / Thông liên tịch / ...* Each document carries a
98
+ canonical short code (`doc_type`, e.g. `QĐ`, `NĐ`, `CT`) and the
99
+ canonical Vietnamese full name (`legal_type`, e.g. `Quyết định`,
100
+ `Nghị định`, `Chỉ thị`). The short code matches the prefix used in
101
+ the document number itself (`43/2026/NĐ-CP` → `NĐ`); the canonical
102
+ map lives in
103
+ [`packages/datasites/vbpl/codes.py`](https://github.com/tmquan/ViLA/blob/main/packages/datasites/vbpl/codes.py)
104
+ and is built from a full audit of every captured API response, so
105
+ legacy CMS prefixes like `LVB-SLe` and quirky tokens like `CThi`
106
+ collapse onto their modern abbreviations (`SL`, `CT`, ...).
107
+
108
+ ### By short code · `doc_type`
109
 
110
  | Value | Count | Share |
111
  |---|---:|---:|
112
+ | `QĐ` | 84,991 | 53.5% |
113
+ | `NQ` | 26,091 | 16.4% |
114
+ | `TT` | 16,221 | 10.2% |
115
+ | `BD` | 10,260 | 6.5% |
116
+ | `CT` | 7,911 | 5.0% |
117
+ | `` | 4,702 | 3.0% |
118
+ | `TTLT` | 3,394 | 2.1% |
119
+ | `VBHN` | 1,792 | 1.1% |
120
+ | `SL` | 980 | 0.6% |
121
+ | `CV` | 708 | 0.4% |
122
+ | `L` | 580 | 0.4% |
123
+ | `L-CTN` | 376 | 0.2% |
124
+
125
+ ### By full name · `legal_type`
126
+
127
+ | Value | Count | Share |
128
+ |---|---:|---:|
129
+ | `Quyết định` | 84,991 | 53.5% |
130
+ | `Nghị quyết` | 26,091 | 16.4% |
131
+ | `Thông tư` | 16,221 | 10.2% |
132
+ | `Bản dịch văn bản` | 10,260 | 6.5% |
133
+ | `Chỉ thị` | 7,911 | 5.0% |
134
+ | `Nghị định` | 4,702 | 3.0% |
135
+ | `Thông tư liên tịch` | 3,394 | 2.1% |
136
+ | `Văn bản hợp nhất` | 1,792 | 1.1% |
137
+ | `Sắc lệnh` | 980 | 0.6% |
138
+ | `Công văn` | 708 | 0.4% |
139
+ | `Luật` | 580 | 0.4% |
140
+ | `Lệnh` | 376 | 0.2% |
141
+
142
+ ## Lĩnh vực pháp luật · `legal_area`
143
+
144
+ `legal_area` is the canonical Vietnamese label pulled from the
145
+ ``documentFields[]`` block on each detail-API response (~250
146
+ distinct labels in the corpus). Roughly two thirds of the documents
147
+ are tagged `Chưa phân loại` ("uncategorised") on the source portal;
148
+ we preserve that literal so consumers can see the gap explicitly
149
+ instead of nulling it. Top areas below; embedding scatters below
150
+ show the structural overlap between adjacent areas.
151
+
152
+ | Value | Count | Share |
153
+ |---|---:|---:|
154
+ | `Chưa phân loại` | 113,916 | 71.7% |
155
+ | `Đất đai` | 2,796 | 1.8% |
156
+ | `Quản lý thuế, phí, lệ phí và thu khác của ngân sách nhà nước` | 2,209 | 1.4% |
157
+ | `Quản lý thuế, phí và lệ phí` | 1,685 | 1.1% |
158
+ | `Lĩnh vực giá` | 1,603 | 1.0% |
159
+ | `Tổ chức- Biên chế` | 1,407 | 0.9% |
160
+ | `Lao động, tiền lương, tiền công` | 1,368 | 0.9% |
161
+ | `Quản lý ngân sách` | 1,207 | 0.8% |
162
+ | `Quản lý ngân sách nhà nước` | 1,028 | 0.6% |
163
+ | `Đường bộ` | 929 | 0.6% |
164
+ | `Ngân sách nhà nước` | 919 | 0.6% |
165
+ | `Chính quyền địa phương` | 849 | 0.5% |
166
+ | `Công chức, viên chức` | 696 | 0.4% |
167
+ | `Tài chính khác` | 654 | 0.4% |
168
+ | `Lâm nghiệp` | 628 | 0.4% |
169
+ | `Môi trường` | 542 | 0.3% |
170
+ | `Nông nghiệp` | 503 | 0.3% |
171
+ | `Thủy lợi` | 462 | 0.3% |
172
+ | `Chính sách thuế` | 445 | 0.3% |
173
+ | `Cải cách hành chính` | 402 | 0.3% |
174
 
175
  ## Cơ quan ban hành · Issuing agency
176
 
 
181
  | Value | Count | Share |
182
  |---|---:|---:|
183
  | `unknown` | 158,821 | 100.0% |
184
+ | `Bộ Tài chính` | 1 | 0.0% |
185
 
186
  ## Năm ban hành · Year of issue
187
 
 
190
  `ngay_ban_hanh`; null when the source portal didn't expose the issue
191
  date.
192
 
193
+ | Year | Count |
194
+ |---:|---:|
195
+ | 2016 | 1 |
196
 
197
  ## Nguồn nội dung · Body provenance
198
 
 
209
  |---|---:|---:|
210
  | `body_html` | 143,470 | 90.3% |
211
  | `shell_html` | 15,351 | 9.7% |
212
+ | `metadata_only` | 1 | 0.0% |
213
 
214
  ## Lược đồ bảng `documents` · `documents` schema
215
 
 
224
  | `source` | string | Source host, always `vbpl.vn`. |
225
  | `source_url` / `api_url` | string | Deep link back to the portal page / the underlying gateway API. |
226
  | `title` | string | Document title (e.g. `"Nghị định 43/2026/NĐ-CP sửa đổi …"`). |
227
+ | `doc_type` | string | Canonical Vietnamese **short code** (`HP`, `BL`, `L`, `PL`, `L-CTN`, `NQ`, `NĐ`, `QĐ`, `TT`, `CT`, `SL`, `VBHN`, `TTLT`, `CV`, `TB`, `HĐ`, `BD`, ...). Matches the abbreviation used in `so_hieu` itself (`43/2026/NĐ-CP` → `NĐ`). |
228
+ | `legal_type` | string | Canonical Vietnamese **full name** for the document type (`Luật`, `Nghị định`, `Thông tư`, `Quyết định`, `Nghị quyết`, `Chỉ thị`, …). |
229
+ | `legal_area` | string | Legal area / subject domain (`Đất đai`, `Đường bộ`, `Lĩnh vực giá`, …). Defaults to `Chưa phân loại` when the source portal hasn't tagged the doc. |
230
  | `so_hieu` | string | Document number (e.g. `43/2026/NĐ-CP`). |
231
  | `ngay_ban_hanh` | string | Issue date, ISO `YYYY-MM-DD`. |
232
  | `year` | int32 | Year extracted from `ngay_ban_hanh`. |
 
272
 
273
  ## Trực quan hoá embedding · Embedding visualization
274
 
275
+ Mỗi điểm là một văn bản pháp luật; toạ độ là vector embedding 2048-D từ `nvidia/llama-nemotron-embed-1b-v2` chiếu xuống 2D bằng t-SNE / UMAP, cụm bằng HDBSCAN. Sáu mặt phân hoạch: `scope`, `doc_type` (mã ngắn), `legal_type` (tên đầy đủ), `legal_area` (lĩnh vực pháp luật), `year`, `cluster_id`. Các nhãn tail-end (sau top-20) được dồn vào nhóm *Khác / Other* màu xám để chú giải đọc được. — Each dot is one legal document; coordinates are the 2D projection of a 2048-D embedding from `nvidia/llama-nemotron-embed-1b-v2` (t-SNE / UMAP), with HDBSCAN cluster ids. Six facets: `scope`, `doc_type` (canonical short code), `legal_type` (canonical full name), `legal_area` (subject domain), `year`, `cluster_id`. Tail-end labels beyond the top 20 are collapsed into a grey *Khác / Other* bucket to keep the legend legible.
276
 
277
  ### TSNE colored by `scope`
278
 
 
290
 
291
  ![UMAP colored by `doc_type`](./embedding-doc-type-umap.png)
292
 
293
+ ### TSNE colored by `legal_type`
294
+
295
+ ![TSNE colored by `legal_type`](./embedding-legal-type-tsne.png)
296
+
297
+ ### UMAP colored by `legal_type`
298
+
299
+ ![UMAP colored by `legal_type`](./embedding-legal-type-umap.png)
300
+
301
+ ### TSNE colored by `legal_area`
302
+
303
+ ![TSNE colored by `legal_area`](./embedding-legal-area-tsne.png)
304
+
305
+ ### UMAP colored by `legal_area`
306
+
307
+ ![UMAP colored by `legal_area`](./embedding-legal-area-umap.png)
308
+
309
  ### TSNE colored by `year`
310
 
311
  ![TSNE colored by `year`](./embedding-year-tsne.png)
 
356
  stage with the same `--limit` is a no-op (each stage skips
357
  already-produced outputs).
358
 
359
+ Captured: `2026-05-20T00:33:51.271506+00:00`.
360
 
361
  ## Nguồn · Source
362
 
documents.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a5dc1d152dfce54eca7886d02905dd8e7cb991b1cd300538809566704e4b224d
3
- size 1960294648
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97af6d01f86fb5590cd4f246c5f2048bc73b51c9c38eb0cebb05a41885e226a0
3
+ size 1960630878
embedding-cluster-id-tsne.png CHANGED

Git LFS Details

  • SHA256: 5148e9263197631312b05b762a37ef5f64003b32c3da1df03c8cc424e78f652b
  • Pointer size: 130 Bytes
  • Size of remote file: 82.4 kB

Git LFS Details

  • SHA256: 66e831dcea84b37a2352e061ff3d162bf738f555f25d6ed5839f93efbbc76a62
  • Pointer size: 130 Bytes
  • Size of remote file: 57.7 kB
embedding-cluster-id-umap.png CHANGED

Git LFS Details

  • SHA256: 4a19215cea38f5946be2810d52868b649aae59fd0a8148e760b4d6f8f8281059
  • Pointer size: 130 Bytes
  • Size of remote file: 95.4 kB

Git LFS Details

  • SHA256: 57676072f854fee4d4fbeb2c1b55354c824c85a538eebe512e81f6e71f3ac60c
  • Pointer size: 130 Bytes
  • Size of remote file: 97.9 kB
embedding-doc-type-tsne.png CHANGED

Git LFS Details

  • SHA256: a2141359702ab8568cd1b251c8e4b305a62b2f1995f0f96f400000fcafc5f785
  • Pointer size: 130 Bytes
  • Size of remote file: 85.4 kB

Git LFS Details

  • SHA256: 66c01d0cfc0b5aa0dcec319d61c24bb146b22e9c21873d2e11f0cfbf3eedc53a
  • Pointer size: 130 Bytes
  • Size of remote file: 64.5 kB
embedding-doc-type-umap.png CHANGED

Git LFS Details

  • SHA256: 3ee3790497d9a352e963a4c8f01aad59f66656f5e2a47ce208f8c3d5c9b47ee0
  • Pointer size: 131 Bytes
  • Size of remote file: 162 kB

Git LFS Details

  • SHA256: a45aa91899f16d5e29ceae443ec415fd19cad7355cb6e25027cc919325dc4961
  • Pointer size: 131 Bytes
  • Size of remote file: 172 kB
embedding-legal-area-tsne.png ADDED

Git LFS Details

  • SHA256: 6aa9bf34790646c51659b6725d7c1e1613a8b23e1f852838d907f20cf6639de2
  • Pointer size: 130 Bytes
  • Size of remote file: 82.9 kB
embedding-legal-area-umap.png ADDED

Git LFS Details

  • SHA256: e2ab956670191412f154e3d28e0850b7707bda88d627fa1868e3904d47598cd2
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
embedding-legal-type-tsne.png ADDED

Git LFS Details

  • SHA256: 69d3794f70c9ba1d023b89f1d183e56575efeda88d620e580482a65da89a81b4
  • Pointer size: 130 Bytes
  • Size of remote file: 77.3 kB
embedding-legal-type-umap.png ADDED

Git LFS Details

  • SHA256: 3f8ff95f4c3b8dcdd030218b9b70c55d32862fd10aaaf4df9e877cdb477872a1
  • Pointer size: 131 Bytes
  • Size of remote file: 173 kB
embedding-scope-tsne.png CHANGED

Git LFS Details

  • SHA256: 0dbb73c217db683d1e6755ae1b8a8ac1fc48a1c50d72dc5699c4c95138aa027c
  • Pointer size: 130 Bytes
  • Size of remote file: 73.8 kB

Git LFS Details

  • SHA256: 0fee538c33626ce7786cd10aece6e83c36a5134f342ecc1fd71587dd62e01f90
  • Pointer size: 130 Bytes
  • Size of remote file: 50.2 kB
embedding-scope-umap.png CHANGED

Git LFS Details

  • SHA256: 61c9fc1098c34c9d0e39655eb05c6dc6329857fd78652b20107214c873ed2619
  • Pointer size: 131 Bytes
  • Size of remote file: 124 kB

Git LFS Details

  • SHA256: 462b07334cb041c5cac09aa82abc6ea42ec877bae60f7d7446230dacb1263210
  • Pointer size: 131 Bytes
  • Size of remote file: 124 kB
embedding-year-tsne.png CHANGED

Git LFS Details

  • SHA256: d7317a5ee2b8dd5a681c251da5d4aaa1586863e9a838b8e828043ae8f774db5f
  • Pointer size: 130 Bytes
  • Size of remote file: 66.7 kB

Git LFS Details

  • SHA256: 79caf797ebe2f8d423bd76b085446eef9b23402b901656536bfe6724ead5f5f4
  • Pointer size: 130 Bytes
  • Size of remote file: 48 kB
embedding-year-umap.png CHANGED

Git LFS Details

  • SHA256: b2d8cc54028861bf70627c9dc6de7a33fc0c01e528648d71b197fc707fb114ce
  • Pointer size: 130 Bytes
  • Size of remote file: 84.9 kB

Git LFS Details

  • SHA256: 25683a306a4d27d31d47e5fb9006c67f70c91b866b0e9cb74e77187d56feac0e
  • Pointer size: 130 Bytes
  • Size of remote file: 88.3 kB
manifest.json CHANGED
@@ -1,15 +1,15 @@
1
  {
2
  "corpus": {
3
- "documents": 158821,
4
  "raw_rows": 158822,
5
- "dropped_empty": 1,
6
- "with_structure": 158821,
7
  "with_attachment": 0,
8
  "char_len": {
9
- "n": 158821,
10
  "min": 1,
11
  "max": 2402952,
12
- "mean": 26478.1,
13
  "median": 6378
14
  },
15
  "pages": {
@@ -37,131 +37,377 @@
37
  "by_scope": {
38
  "dia_phuong": {
39
  "count": 104345,
40
- "share": 0.6569975003305608
41
  },
42
  "trung_uong": {
43
- "count": 54476,
44
- "share": 0.3430024996694392
45
  }
46
  },
47
  "by_doc_type": {
48
- "{'id': '0a5362e8-cdca-436e-96cd-979598df3b16', 'name': 'Quyết định', 'code': '', 'parentCode': None, 'parentName': None}": {
49
- "count": 82118,
50
- "share": 0.5170474937193444
 
 
 
 
 
 
 
 
51
  },
52
- "{'id': '044d941c-40de-45b9-ae84-51f5a730bfe0', 'name': 'Nghị quyết', 'code': 'NQ', 'parentCode': None, 'parentName': None}": {
53
- "count": 24851,
54
- "share": 0.15647175121677864
55
  },
56
- "{'id': '178c63a9-73ff-4fd4-9d91-18d690520090', 'name': 'Thông tư', 'code': 'TT', 'parentCode': None, 'parentName': None}": {
57
- "count": 11155,
58
- "share": 0.07023630376335623
59
  },
60
- "{'id': '9979b9a4-9e4c-4a14-a990-6d86e11b75c5', 'name': 'Bản dịch văn bản', 'code': 'BD'}": {
61
- "count": 10255,
62
- "share": 0.0645695468483387
63
  },
64
- "{'id': '0045710b-eb54-4ce5-b511-76aa23f3021b', 'name': 'Chỉ thị', 'code': 'CThi', 'parentCode': None, 'parentName': None}": {
65
- "count": 7654,
66
- "share": 0.04819261936393802
67
  },
68
- "{'id': '178c63a9-73ff-4fd4-9d91-18d690520090', 'name': 'Thông tư', 'code': 'TT'}": {
69
- "count": 4624,
70
- "share": 0.02911453775004565
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  },
72
  "unknown": {
73
- "count": 4522,
74
- "share": 0.028472305299676995
 
 
 
 
75
  },
76
- "{'id': '0d08b84c-7de7-4800-8760-2a68265e7890', 'name': 'Nghị định', 'code': 'NĐ', 'parentCode': None, 'parentName': None}": {
77
- "count": 3357,
78
- "share": 0.02113700329301541
79
  },
80
- "{'id': '0e4f2bde-5ccb-4001-9e0a-b43f51cca5e8', 'name': 'Thông tư liên tịch', 'code': 'TTLT_TW', 'parentCode': None, 'parentName': None}": {
81
- "count": 3289,
82
- "share": 0.020708848326102973
83
  },
84
- "{'id': '26b8a9ff-1b59-4c57-9605-f2ad4ed7c324', 'name': 'Văn bản hợp nhất', 'code': 'VBHN'}": {
85
- "count": 1275,
86
- "share": 0.008027905629608175
87
  },
88
- "{'id': '0d08b84c-7de7-4800-8760-2a68265e7890', 'name': 'Nghị định', 'code': 'NĐ'}": {
89
- "count": 1198,
90
- "share": 0.0075430830935455636
91
  },
92
- "{'id': '1e0386d2-9395-4a0f-9d04-18a9e01f0ca7', 'name': 'Sắc lệnh', 'code': 'LVB-SLe', 'parentCode': None, 'parentName': None}": {
93
- "count": 979,
94
- "share": 0.00616417224422463
95
  },
96
- "{'id': 'ecc6bbe0-5d0c-4916-836b-bb2f8146249c', 'name': 'Công văn', 'code': 'LVBM-CV', 'parentCode': None, 'parentName': None}": {
97
- "count": 708,
98
- "share": 0.004457848773147128
 
 
 
 
 
 
 
 
 
 
 
 
99
  },
100
- "{'id': '0a5362e8-cdca-436e-96cd-979598df3b16', 'name': 'Quyết định', 'code': 'QĐ'}": {
101
- "count": 589,
102
- "share": 0.0037085775810503647
103
  },
104
- "{'id': '26b8a9ff-1b59-4c57-9605-f2ad4ed7c324', 'name': 'Văn bản hợp nhất', 'code': 'VBHN', 'parentCode': None, 'parentName': None}": {
105
- "count": 417,
106
- "share": 0.0026255973706247916
107
  },
108
- "{'id': '11025e19-2dd6-4165-85ad-ab6241186a1a', 'name': 'Luật', 'code': 'Lu', 'parentCode': None, 'parentName': None}": {
109
- "count": 394,
110
- "share": 0.0024807802494632323
111
  },
112
- "{'id': '43323400-7d47-418e-80ef-a912a349d4e3', 'name': 'Lệnh', 'code': 'L-CTN', 'parentCode': None, 'parentName': None}": {
113
- "count": 362,
114
- "share": 0.0022792955591514974
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  },
116
- "{'id': '044d941c-40de-45b9-ae84-51f5a730bfe0', 'name': 'Nghị quyết', 'code': 'NQ'}": {
117
- "count": 193,
118
- "share": 0.0012152045384426493
119
  },
120
- "{'id': '1cd0d144-ccb5-4196-8b56-9a3f599c9341', 'name': 'Pháp lệnh', 'code': 'PL', 'parentCode': None, 'parentName': None}": {
121
- "count": 173,
122
- "share": 0.0010892766069978152
123
  },
124
- "{'id': '11025e19-2dd6-4165-85ad-ab6241186a1a', 'name': 'Luật', 'code': 'Lu'}": {
125
- "count": 170,
126
- "share": 0.00107038741728109
127
  },
128
- "{'id': '25fad6ae-78f6-4acd-a70e-da19032729af', 'name': 'Văn bản hành chính liên quan', 'code': 'VBHC', 'parentCode': None, 'parentName': None}": {
129
- "count": 158,
130
- "share": 0.0009948306584141896
131
  },
132
- "{'id': '0e4f2bde-5ccb-4001-9e0a-b43f51cca5e8', 'name': 'Thông tư liên tịch', 'code': 'TTLT_TW'}": {
133
- "count": 86,
134
- "share": 0.0005414901052127868
135
  },
136
- "{'id': 'e154c97d-d4d8-4968-9b72-feffa38924d5', 'name': 'Văn bản liên quan', 'code': 'LVB-VBLQ', 'parentCode': None, 'parentName': None}": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  "count": 43,
138
- "share": 0.0002707450526063934
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  },
140
- "{'id': '9176d8a9-fadf-4905-acd0-56dba102db56', 'name': 'Chương trình', 'code': 'LVB-CTr', 'parentCode': None, 'parentName': None}": {
141
- "count": 32,
142
- "share": 0.0002014846903117346
143
  },
144
- "{'id': '178c63a9-73ff-4fd4-9d91-18d690520090', 'name': 'Thông tư', 'code': None}": {
145
- "count": 32,
146
- "share": 0.0002014846903117346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  }
148
  },
149
  "by_agency": {
150
  "unknown": {
151
  "count": 158821,
152
- "share": 1.0
 
 
 
 
153
  }
154
  },
155
- "by_year": {},
 
 
156
  "by_body_source": {
157
  "body_html": {
158
  "count": 143470,
159
- "share": 0.9033440162195175
160
  },
161
  "shell_html": {
162
  "count": 15351,
163
- "share": 0.09665598378048243
 
 
 
 
164
  }
165
  },
166
- "completed_at": "2026-05-19T22:08:45.641679+00:00"
167
  }
 
1
  {
2
  "corpus": {
3
+ "documents": 158822,
4
  "raw_rows": 158822,
5
+ "dropped_empty": 0,
6
+ "with_structure": 158822,
7
  "with_attachment": 0,
8
  "char_len": {
9
+ "n": 158822,
10
  "min": 1,
11
  "max": 2402952,
12
+ "mean": 26477.9,
13
  "median": 6378
14
  },
15
  "pages": {
 
37
  "by_scope": {
38
  "dia_phuong": {
39
  "count": 104345,
40
+ "share": 0.656993363639798
41
  },
42
  "trung_uong": {
43
+ "count": 54477,
44
+ "share": 0.343006636360202
45
  }
46
  },
47
  "by_doc_type": {
48
+ "QĐ": {
49
+ "count": 84991,
50
+ "share": 0.535133671657579
51
+ },
52
+ "NQ": {
53
+ "count": 26091,
54
+ "share": 0.16427824860535695
55
+ },
56
+ "TT": {
57
+ "count": 16221,
58
+ "share": 0.10213320572716626
59
  },
60
+ "BD": {
61
+ "count": 10260,
62
+ "share": 0.06460062208006448
63
  },
64
+ "CT": {
65
+ "count": 7911,
66
+ "share": 0.049810479656470764
67
  },
68
+ "": {
69
+ "count": 4702,
70
+ "share": 0.029605470274898942
71
  },
72
+ "TTLT": {
73
+ "count": 3394,
74
+ "share": 0.021369835413229905
75
  },
76
+ "VBHN": {
77
+ "count": 1792,
78
+ "share": 0.011283071614763697
79
+ },
80
+ "SL": {
81
+ "count": 980,
82
+ "share": 0.006170429789323897
83
+ },
84
+ "CV": {
85
+ "count": 708,
86
+ "share": 0.004457820704940121
87
+ },
88
+ "L": {
89
+ "count": 580,
90
+ "share": 0.003651887018171286
91
+ },
92
+ "L-CTN": {
93
+ "count": 376,
94
+ "share": 0.0023674302048834546
95
  },
96
  "unknown": {
97
+ "count": 270,
98
+ "share": 0.0017000163705280125
99
+ },
100
+ "PL": {
101
+ "count": 187,
102
+ "share": 0.0011774187455138457
103
  },
104
+ "VBHC": {
105
+ "count": 169,
106
+ "share": 0.0010640843208119782
107
  },
108
+ "VBLQ": {
109
+ "count": 43,
110
+ "share": 0.0002707433478989057
111
  },
112
+ "CTr": {
113
+ "count": 39,
114
+ "share": 0.00024555792018737956
115
  },
116
+ "NQLT": {
117
+ "count": 33,
118
+ "share": 0.00020777977862009042
119
  },
120
+ "": {
121
+ "count": 17,
122
+ "share": 0.00010703806777398597
123
  },
124
+ "BL": {
125
+ "count": 16,
126
+ "share": 0.00010074171084610445
127
+ },
128
+ "VBK": {
129
+ "count": 9,
130
+ "share": 5.666721235093375e-05
131
+ },
132
+ "TB": {
133
+ "count": 8,
134
+ "share": 5.0370855423052224e-05
135
+ },
136
+ "HP": {
137
+ "count": 6,
138
+ "share": 3.7778141567289165e-05
139
  },
140
+ "TTLB": {
141
+ "count": 6,
142
+ "share": 3.7778141567289165e-05
143
  },
144
+ "SLT": {
145
+ "count": 4,
146
+ "share": 2.5185427711526112e-05
147
  },
148
+ "KXĐ": {
149
+ "count": 4,
150
+ "share": 2.5185427711526112e-05
151
  },
152
+ "NĐT": {
153
+ "count": 2,
154
+ "share": 1.2592713855763056e-05
155
+ },
156
+ "BGN": {
157
+ "count": 2,
158
+ "share": 1.2592713855763056e-05
159
+ },
160
+ "ThT": {
161
+ "count": 1,
162
+ "share": 6.296356927881528e-06
163
+ }
164
+ },
165
+ "by_legal_type": {
166
+ "Quyết định": {
167
+ "count": 84991,
168
+ "share": 0.535133671657579
169
  },
170
+ "Nghị quyết": {
171
+ "count": 26091,
172
+ "share": 0.16427824860535695
173
  },
174
+ "Thông ": {
175
+ "count": 16221,
176
+ "share": 0.10213320572716626
177
  },
178
+ "Bản dịch văn bản": {
179
+ "count": 10260,
180
+ "share": 0.06460062208006448
181
  },
182
+ "Chỉ thị": {
183
+ "count": 7911,
184
+ "share": 0.049810479656470764
185
  },
186
+ "Nghị định": {
187
+ "count": 4702,
188
+ "share": 0.029605470274898942
189
  },
190
+ "Thông liên tịch": {
191
+ "count": 3394,
192
+ "share": 0.021369835413229905
193
+ },
194
+ "Văn bản hợp nhất": {
195
+ "count": 1792,
196
+ "share": 0.011283071614763697
197
+ },
198
+ "Sắc lệnh": {
199
+ "count": 980,
200
+ "share": 0.006170429789323897
201
+ },
202
+ "Công văn": {
203
+ "count": 708,
204
+ "share": 0.004457820704940121
205
+ },
206
+ "Luật": {
207
+ "count": 580,
208
+ "share": 0.003651887018171286
209
+ },
210
+ "Lệnh": {
211
+ "count": 376,
212
+ "share": 0.0023674302048834546
213
+ },
214
+ "unknown": {
215
+ "count": 270,
216
+ "share": 0.0017000163705280125
217
+ },
218
+ "Pháp lệnh": {
219
+ "count": 187,
220
+ "share": 0.0011774187455138457
221
+ },
222
+ "Văn bản hành chính liên quan": {
223
+ "count": 169,
224
+ "share": 0.0010640843208119782
225
+ },
226
+ "Văn bản liên quan": {
227
  "count": 43,
228
+ "share": 0.0002707433478989057
229
+ },
230
+ "Chương trình": {
231
+ "count": 39,
232
+ "share": 0.00024555792018737956
233
+ },
234
+ "Nghị quyết liên tịch": {
235
+ "count": 33,
236
+ "share": 0.00020777977862009042
237
+ },
238
+ "Hiệp định": {
239
+ "count": 17,
240
+ "share": 0.00010703806777398597
241
+ },
242
+ "Bộ luật": {
243
+ "count": 16,
244
+ "share": 0.00010074171084610445
245
+ },
246
+ "Văn bản khác": {
247
+ "count": 9,
248
+ "share": 5.666721235093375e-05
249
+ },
250
+ "Thông báo": {
251
+ "count": 8,
252
+ "share": 5.0370855423052224e-05
253
  },
254
+ "Hiến pháp": {
255
+ "count": 6,
256
+ "share": 3.7778141567289165e-05
257
  },
258
+ "Thông tư liên bộ": {
259
+ "count": 6,
260
+ "share": 3.7778141567289165e-05
261
+ },
262
+ "Sắc luật": {
263
+ "count": 4,
264
+ "share": 2.5185427711526112e-05
265
+ },
266
+ "Chưa xác định": {
267
+ "count": 4,
268
+ "share": 2.5185427711526112e-05
269
+ },
270
+ "Nghị định thư": {
271
+ "count": 2,
272
+ "share": 1.2592713855763056e-05
273
+ },
274
+ "Bản ghi nhớ": {
275
+ "count": 2,
276
+ "share": 1.2592713855763056e-05
277
+ },
278
+ "Thỏa thuận": {
279
+ "count": 1,
280
+ "share": 6.296356927881528e-06
281
+ }
282
+ },
283
+ "by_legal_area": {
284
+ "Chưa phân loại": {
285
+ "count": 113916,
286
+ "share": 0.7172557957965521
287
+ },
288
+ "Đất đai": {
289
+ "count": 2796,
290
+ "share": 0.01760461397035675
291
+ },
292
+ "Quản lý thuế, phí, lệ phí và thu khác của ngân sách nhà nước": {
293
+ "count": 2209,
294
+ "share": 0.013908652453690294
295
+ },
296
+ "Quản lý thuế, phí và lệ phí": {
297
+ "count": 1685,
298
+ "share": 0.010609361423480373
299
+ },
300
+ "Lĩnh vực giá": {
301
+ "count": 1603,
302
+ "share": 0.01009306015539409
303
+ },
304
+ "Tổ chức- Biên chế": {
305
+ "count": 1407,
306
+ "share": 0.00885897419752931
307
+ },
308
+ "Lao động, tiền lương, tiền công": {
309
+ "count": 1368,
310
+ "share": 0.00861341627734193
311
+ },
312
+ "Quản lý ngân sách": {
313
+ "count": 1207,
314
+ "share": 0.007599702811953004
315
+ },
316
+ "Quản lý ngân sách nhà nước": {
317
+ "count": 1028,
318
+ "share": 0.00647265492186221
319
+ },
320
+ "Đường bộ": {
321
+ "count": 929,
322
+ "share": 0.00584931558600194
323
+ },
324
+ "Ngân sách nhà nước": {
325
+ "count": 919,
326
+ "share": 0.005786352016723124
327
+ },
328
+ "Chính quyền địa phương": {
329
+ "count": 849,
330
+ "share": 0.005345607031771417
331
+ },
332
+ "Công chức, viên chức": {
333
+ "count": 696,
334
+ "share": 0.004382264421805543
335
+ },
336
+ "Tài chính khác": {
337
+ "count": 654,
338
+ "share": 0.004117817430834519
339
+ },
340
+ "Lâm nghiệp": {
341
+ "count": 628,
342
+ "share": 0.003954112150709599
343
+ },
344
+ "Môi trường": {
345
+ "count": 542,
346
+ "share": 0.0034126254549117882
347
+ },
348
+ "Nông nghiệp": {
349
+ "count": 503,
350
+ "share": 0.0031670675347244084
351
+ },
352
+ "Thủy lợi": {
353
+ "count": 462,
354
+ "share": 0.002908916900681266
355
+ },
356
+ "Chính sách thuế": {
357
+ "count": 445,
358
+ "share": 0.00280187883290728
359
+ },
360
+ "Cải cách hành chính": {
361
+ "count": 402,
362
+ "share": 0.002531135485008374
363
+ },
364
+ "Tổ chức cán bộ": {
365
+ "count": 401,
366
+ "share": 0.0025248391280804925
367
+ },
368
+ "An ninh và trật tự, an toàn xã hội": {
369
+ "count": 382,
370
+ "share": 0.002405208346450744
371
+ },
372
+ "Bảo trợ xã hội": {
373
+ "count": 345,
374
+ "share": 0.002172243140119127
375
+ },
376
+ "Phát triển nông thôn": {
377
+ "count": 336,
378
+ "share": 0.002115575927768193
379
+ },
380
+ "Tài nguyên khoáng sản, địa chất": {
381
+ "count": 330,
382
+ "share": 0.002077797786200904
383
  }
384
  },
385
  "by_agency": {
386
  "unknown": {
387
  "count": 158821,
388
+ "share": 0.9999937036430722
389
+ },
390
+ "Bộ Tài chính": {
391
+ "count": 1,
392
+ "share": 6.296356927881528e-06
393
  }
394
  },
395
+ "by_year": {
396
+ "2016": 1
397
+ },
398
  "by_body_source": {
399
  "body_html": {
400
  "count": 143470,
401
+ "share": 0.9033383284431628
402
  },
403
  "shell_html": {
404
  "count": 15351,
405
+ "share": 0.09665537519990933
406
+ },
407
+ "metadata_only": {
408
+ "count": 1,
409
+ "share": 6.296356927881528e-06
410
  }
411
  },
412
+ "completed_at": "2026-05-20T00:33:51.271506+00:00"
413
  }