Dataset Viewer
Auto-converted to Parquet Duplicate
doc_name
stringlengths
1
6
item_id
stringlengths
1
6
scope
stringclasses
2 values
source
stringclasses
1 value
source_url
stringlengths
40
939
api_url
stringlengths
61
66
title
stringlengths
5
678
doc_type
stringclasses
25 values
legal_type
stringclasses
23 values
legal_area
stringclasses
171 values
so_hieu
listlengths
1
1
ngay_ban_hanh
stringclasses
592 values
year
int32
1.99k
2.02k
co_quan_ban_hanh
stringclasses
145 values
trich_yeu
stringclasses
0 values
markdown
stringlengths
10
1.35M
num_pages
int32
num_sections
int32
1
50
num_paragraphs
int32
0
6.88k
num_sentences
int32
0
11.5k
char_len
int32
0
1.35M
text_hash
stringlengths
32
32
parser_model
stringclasses
1 value
parser_runtime
stringclasses
1 value
body_source
stringclasses
2 values
parsed_at
stringdate
2026-05-19 01:02:48
2026-05-20 08:44:51
confidence
float64
structure_json
stringlengths
784
7.48M
extracted_json
stringlengths
135
278k
file_paths_json
stringclasses
0 values
1
1
trung_uong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/nghi-dinh-so-24-ld-nd-to-chuc-cac-co-quan-lao-dong-dia-phuong-lien-khu-va-tinh--1
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/1
Tổ chức các cơ quan Lao động địa phương liên khu và tỉnh
nghi_dinh
Nghị định
Chưa phân loại
null
null
null
null
null
BỘ LAO ĐỘNG CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM Độc lập – Tự do – Hạnh phúc Số: 24/LĐ-NĐ Hà Nội, ngày 27 tháng 03 năm 1950 **NGHỊ ĐỊNH BỘ TRƯỞNG BỘ LAO ĐỘNG** ***Tổ chức các cơ quan Lao động địa phương liên khu và tỉnh*** **BỘ TRƯỞNG BỘ LAO ĐỘNG** *Chiểu Sắc lệnh số 226/SL ngày 28/11/1946 tổ chức Bộ Lao động tro...
null
1
18
18
1,250
c0775eaf8bcf2a3800acf485b24db76d
local/markdownify
local
body_html
2026-05-19T01:13:43+00:00
null
{"schema_version": "1.0", "doc_id": "1", "meta": {"doc_id": "1", "doc_name": "1", "doc_type": null, "doc_subtype": null, "case_type": null, "doc_code": null, "doc_number": null, "year": null, "title": "Tổ chức các cơ quan Lao động địa phương liên khu và tỉnh", "subject": null, "issue_date": "1950-03-27", "issuing_body"...
{"doc_id": "1", "text_hash": "c0775eaf8bcf2a3800acf485b24db76d", "char_len": 1250, "entities": [{"tag": "DATE", "text": "28/11/1946", "start": 286, "end": 296}, {"tag": "DATE", "text": "14/04/1948", "start": 377, "end": 387}, {"tag": "DATE", "text": "15/05/1948", "start": 459, "end": 469}, {"tag": "ARTICLE", "text": "Đ...
null
10
10
trung_uong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/thong-tu-so-41-nv-6-tt-dinh-the-le-xep-cong-chuc-vao-thang-luong-chung-theo-nang-luc--10
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/10
Định thể lệ xếp công chức vào thang lương chung theo năng lực
thong_tu
Thông tư
Chưa phân loại
null
null
null
null
null
BỘ NỘI VỤ CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM Độc lập – Tự do – Hạnh phúc Số: 41-NV-6-TT Ngày 10 tháng 1 năm 2026 **THÔNG TƯ** **SỐ 41-NV-6-TT NGÀY 16 THÁNG 10 NĂM 1950 CỦA BỘ NỘI VỤ ĐỊNH THỂ LỆ XẾP CÔNG CHỨC VÀO THANG LƯƠNG CHUNG THEO NĂNG LỰC** BỘ TRƯỞNG BỘ NỘI VỤ *Kính gửi Ông Phó Thủ tướng* *Các Ông Bộ trưở...
null
1
63
97
9,105
bf85be9b4c5e92f4c6238cff5413eee8
local/markdownify
local
body_html
2026-05-19T01:13:42+00:00
null
{"schema_version": "1.0", "doc_id": "10", "meta": {"doc_id": "10", "doc_name": "10", "doc_type": "quyet_dinh", "doc_subtype": null, "case_type": null, "doc_code": null, "doc_number": null, "year": null, "title": "Định thể lệ xếp công chức vào thang lương chung theo năng lực", "subject": null, "issue_date": "2026-01-10"...
{"doc_id": "10", "text_hash": "bf85be9b4c5e92f4c6238cff5413eee8", "char_len": 9105, "entities": [{"tag": "DATE", "text": "29/5/1948", "start": 1226, "end": 1235}, {"tag": "DATE", "text": "15/7/1948", "start": 1291, "end": 1300}, {"tag": "DATE", "text": "29/6/1950", "start": 3009, "end": 3018}, {"tag": "DATE", "text": "...
null
100
100
trung_uong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/sac-lenh-so-68-sl-thanh-lap-ban-kinh-te-chinh-phu--100
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/100
thành lập Ban Kinh tế Chính phủ
sac_lenh
Sắc lệnh
Chưa phân loại
null
null
null
null
null
**SẮC LỆNH** **CỦA CHỦ TỊCH** **NƯỚC VIỆT NAM DÂN CHỦ CỘNG HÒA** **SỐ 68/SL NGÀY 14 THÁNG 5 NĂM 1950** CHỦ TỊCH NƯỚC VIỆT NAM DÂN CHỦ CỘNG HÒA *Xét nhu cầu công việc;* *Chiểu đề nghị của Thủ tướng Chính phủ và Liên bộ Kinh tế;* *Chiểu sắc lệnh số 7-SL ngày 20 tháng 1 năm 1950 tổ chức Văn phòng các Bộ;* *Theo qu...
null
1
30
30
1,501
aea5aa77d35a1b47ebef05b410a67191
local/markdownify
local
body_html
2026-05-19T01:13:41+00:00
null
{"schema_version": "1.0", "doc_id": "100", "meta": {"doc_id": "100", "doc_name": "100", "doc_type": null, "doc_subtype": null, "case_type": null, "doc_code": null, "doc_number": null, "year": null, "title": "thành lập Ban Kinh tế Chính phủ", "subject": null, "issue_date": "1950-05-14", "issuing_body": null, "court_leve...
{"doc_id": "100", "text_hash": "aea5aa77d35a1b47ebef05b410a67191", "char_len": 1501, "entities": [{"tag": "ARTICLE", "text": "Điều 1", "start": 376, "end": 382}, {"tag": "ARTICLE", "text": "Điều 2", "start": 420, "end": 426}, {"tag": "ARTICLE", "text": "Điều 3", "start": 609, "end": 615}, {"tag": "ARTICLE", "text": "Đi...
null
1000
1000
trung_uong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/nghi-quyet-so-khong-so-ve-viec-hoan-toan-tin-nhiem-chinh-phu--1000
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/1000
Về việc hoàn toàn tín nhiệm Chính phủ
nghi_quyet
Nghị quyết
Chưa phân loại
null
null
null
null
null
**NGHỊ QUYẾT** **CỦA QUỐC HỘI NƯỚC VIỆT NAM DÂN CHỦ CỘNG HÒA HÒAN TÒAN TÍN NHIỆM CHÍNH PHỦ** *(Đã được Quốc hội nhất trí thông qua trong phiên họp đêm 22 tháng 1 năm 1957)* Quốc hội nước Việt Nam dân chủ cộng hòa họp khóa thứ VI, sau khi nghe báo cáo chính trị chung của Chính phủ và các báo cáo bổ sung, sau khi thảo...
null
1
7
8
1,586
1309f9e00041210cd1241d2fd23ad68c
local/markdownify
local
body_html
2026-05-19T01:13:37+00:00
null
{"schema_version": "1.0", "doc_id": "1000", "meta": {"doc_id": "1000", "doc_name": "1000", "doc_type": null, "doc_subtype": null, "case_type": null, "doc_code": null, "doc_number": null, "year": null, "title": "Về việc hoàn toàn tín nhiệm Chính phủ", "subject": null, "issue_date": null, "issuing_body": null, "court_lev...
{"doc_id": "1000", "text_hash": "1309f9e00041210cd1241d2fd23ad68c", "char_len": 1586, "entities": [], "relations": [], "statute_refs": []}
null
10000
10000
trung_uong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/chi-thi-so-64-ttg-ve-tang-cuong-cong-tac-giai-quyet-khieu-nai-to-cao-cua-cong-dan--10000
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/10000
Về tăng cường công tác giải quyết khiếu nại, tố cáo của công dân
chi_thi
Chỉ thị
Chưa phân loại
null
null
null
null
null
| | | | --- | --- | | **THỦ TƯỚNG CHÍNH PHỦ \*\*\*\*\*\*** | **CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM Độc lập - Tự do - Hạnh phúc \*\*\*\*\*\*\*\*** | | Số: 64-TTg | *Hà Nội, ngày 25 tháng 01 năm 1995* | **CHỈ THỊ** VỀ TĂNG CƯỜNG CÔNG TÁC GIẢI QUYẾT KHIẾU NẠI, TỐ CÁO CỦA CÔNG DÂN Thi hành Pháp lệnh khiếu nại, tố cáo của...
null
1
21
27
7,490
0f9bc70902be4a63213b7bd671b58645
local/markdownify
local
body_html
2026-05-19T01:12:33+00:00
null
{"schema_version": "1.0", "doc_id": "10000", "meta": {"doc_id": "10000", "doc_name": "10000", "doc_type": "quyet_dinh", "doc_subtype": null, "case_type": null, "doc_code": null, "doc_number": null, "year": null, "title": "Về tăng cường công tác giải quyết khiếu nại, tố cáo của công dân", "subject": null, "issue_date": ...
{"doc_id": "10000", "text_hash": "0f9bc70902be4a63213b7bd671b58645", "char_len": 7490, "entities": [{"tag": "ORG-COURT", "text": "Tòa án Nhân dân tối cao tổ chức công tác tiếp dân đến khiếu nại", "start": 5516, "end": 5579}, {"tag": "ARTICLE", "text": "Điều 16", "start": 2635, "end": 2642}, {"tag": "ARTICLE", "text": "...
null
100000
100000
dia_phuong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/nghi-quyet-so-20-2014-nq-hdnd-ve-du-toan-ngan-sach-nha-nuoc-tren-dia-ban-du-thu-chi-ngan-sach-dia-phuong-phuong-an-phan-bo-ngan-sach-cap-tinh-nam-2015--100000
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/100000
"Về dự toán ngân sách nhà nước trên địa bàn; dự thu, chi ngân sách địa phươ(...TRUNCATED)
nghi_quyet
Nghị quyết
Chưa phân loại
null
null
null
null
null
"**NGHỊ QUYẾT**\n\nVỀ DỰ TÓAN THU NGÂN SÁCH NHÀ NƯỚC TRÊN ĐỊA BÀN; DỰ TÓAN TH(...TRUNCATED)
null
1
65
84
9,139
fb8d969bb7908a5a591b758957068824
local/markdownify
local
body_html
2026-05-19T01:26:53+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"100000\", \"meta\": {\"doc_id\": \"100000\", \"doc_name(...TRUNCATED)
"{\"doc_id\": \"100000\", \"text_hash\": \"fb8d969bb7908a5a591b758957068824\", \"char_len\": 9139, \(...TRUNCATED)
null
100001
100001
dia_phuong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/quyet-dinh-so-60-2015-qd-ubnd-ve-viec-bo-sung-khoan-4-dieu-13-quy-che-to-chuc-va-hoat-dong-cua-thon-buon-khu-pho-tren-dia-ban-tinh-phu-yen-ban-hanh-kem-theo-quyet-dinh-so-20-2013-qd-ubnd-ngay-16-7-2013-cua-ubnd-tinh--100001
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/100001
"Về việc bổ sung Khoản 4 Điều 13 Quy chế tổ chức và hoạt động của thôn, bu(...TRUNCATED)
quyet_dinh
Quyết định
Chưa phân loại
null
null
null
null
null
"ỦY BAN NHÂN DÂN\n\nTỈNH PHÚ YÊN\n\nCỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM\n\nĐộc (...TRUNCATED)
null
1
26
28
1,722
3ccbb2ad3056b4282c3b2cc389155c37
local/markdownify
local
body_html
2026-05-19T01:26:54+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"100001\", \"meta\": {\"doc_id\": \"100001\", \"doc_name(...TRUNCATED)
"{\"doc_id\": \"100001\", \"text_hash\": \"3ccbb2ad3056b4282c3b2cc389155c37\", \"char_len\": 1722, \(...TRUNCATED)
null
100002
100002
dia_phuong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/chi-thi-so-18-ct-ub-ve-viec-thuc-hien-phap-lenh-bao-ve-nguon-loi-thuy-san-o-thanh-pho-ho-chi-minh--100002
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/100002
"Về việc thực hiện Pháp lệnh bảo vệ nguồn lợi thủy sản ở thành phố Hồ (...TRUNCATED)
chi_thi
Chỉ thị
Chưa phân loại
null
null
null
null
null
"**CHỈ THỊ**\n\n**Về việc thực hiện Pháp lệnh bảo vệ nguồn lợi thủy sản (...TRUNCATED)
null
1
19
24
4,883
83038dc1ea09646e73e6ccf924a6d144
local/markdownify
local
body_html
2026-05-19T01:26:54+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"100002\", \"meta\": {\"doc_id\": \"100002\", \"doc_name(...TRUNCATED)
"{\"doc_id\": \"100002\", \"text_hash\": \"83038dc1ea09646e73e6ccf924a6d144\", \"char_len\": 4883, \(...TRUNCATED)
null
100003
100003
dia_phuong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/nghi-quyet-so-49-2011-nq-hdnd-ve-viec-giao-bien-che-va-hop-dong-lao-dong-nam-2012-cho-cac-hoi-dac-thu-tinh-ba-ria-vung-tau--100003
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/100003
"Về việc giao biên chế và hợp đồng lao động năm 2012 cho các Hội đặc thù t(...TRUNCATED)
nghi_quyet
Nghị quyết
Chưa phân loại
null
null
null
null
null
"**NGHỊ QUYẾT**\n\n**Về việc giao biên chế và hợp đồng lao động năm 2012**\n\n*(...TRUNCATED)
null
1
16
17
2,003
20ca6d075106ebbcfc91bc6197cfb97a
local/markdownify
local
body_html
2026-05-19T01:26:54+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"100003\", \"meta\": {\"doc_id\": \"100003\", \"doc_name(...TRUNCATED)
"{\"doc_id\": \"100003\", \"text_hash\": \"20ca6d075106ebbcfc91bc6197cfb97a\", \"char_len\": 2003, \(...TRUNCATED)
null
100004
100004
dia_phuong
vbpl.vn
https://vbpl.vn/van-ban/chi-tiet/nghi-quyet-so-21-2014-nq-hdnd-ve-phan-bo-cac-nguon-von-dau-tu-tu-ngan-sach-nha-nuoc-nam-2015--100004
https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/100004
Về phân bổ các nguồn vốn đầu tư từ ngân sách nhà nước năm 2015
nghi_quyet
Nghị quyết
Chưa phân loại
null
null
null
null
null
"**NGHỊ QUYẾT**\n\nVỀ PHÂN BỔ CÁC NGUỒN VỐN ĐẦU TƯ TỪ NGÂN SÁCH NHÀ NƯỚC N(...TRUNCATED)
null
1
47
60
8,363
a2a5d24702c6bf07d24255ea108017c2
local/markdownify
local
body_html
2026-05-19T01:26:54+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"100004\", \"meta\": {\"doc_id\": \"100004\", \"doc_name(...TRUNCATED)
"{\"doc_id\": \"100004\", \"text_hash\": \"a2a5d24702c6bf07d24255ea108017c2\", \"char_len\": 8363, \(...TRUNCATED)
null
End of preview. Expand in Data Studio

Vietnamese National Legal Database — vbpl.vn

🇻🇳 Tóm tắt. Bộ dữ liệu mức văn bản của Cơ sở dữ liệu Quốc gia về pháp luật thu thập từ cổng vbpl.vn do Bộ Tư pháp vận hành. Bao gồm luật, pháp lệnh, nghị định, thông tư, quyết định, nghị quyết, chỉ thị… ở cả cấp trung ương (Quốc hội, Chính phủ, các bộ) lẫn địa phương (HĐND/UBND 63 tỉnh, thành). Mỗi dòng là một văn bản pháp luật kèm markdown đã chuẩn hoá tiếng Việt (NFC + chính tả hiện đại sau 1984) và lớp cấu trúc phân cấp đầy đủ: document → section → paragraph → sentence.

🇬🇧 Summary. Document-level corpus of Vietnam's National Legal Database harvested from vbpl.vn (operated by the Ministry of Justice). Covers laws, ordinances, decrees, circulars, decisions, resolutions, directives, etc. across both central (National Assembly, Government, ministries) and provincial (People's Council / People's Committee of the 63 provinces and cities) levels of authority. Each row is one legal document with its Vietnamese-normalised markdown body (NFC + modern post-1984 orthography) and a hierarchical structure layer: document → section → paragraph → sentence, every unit carrying a stable id + char span back into the markdown.

Tổng quan · At a glance

Chỉ số · Metric Giá trị · Value
Văn bản công bố · Documents 158,820
Tổng số bản ghi đầu vào · Raw extract rows 158,822
Loại bỏ vì rỗng · Dropped (empty body) 2
Không có thân bài · markdown is null (source has no body) 11,505
Có cấu trúc · With structure layer 158,820
Có tệp đính kèm · With downloaded attachment 0
Trung vị ký tự · Median chars / doc 5,311
Trung vị trang · Median pages / doc
Trung vị đoạn văn · Median paragraphs / doc 39
Trung vị câu · Median sentences / doc 52

Tổng quan trực quan · Visual overview

Sáu hình tóm tắt cấu trúc của corpus. Tất cả hình được tạo bằng plotly + kaleido (Chromium headless) và lưu thành PNG tĩnh để hiển thị trong dataset card. — Six pictures summarising the corpus structure. All figures are rendered with plotly + kaleido (headless Chromium) and saved as static PNG for the dataset card.

Phân bố theo lĩnh vực pháp luật

Phân bố theo lĩnh vực pháp luật

Top 25 legal areas sized by document count. The pale Chưa phân loại ('uncategorised') rectangle covers ~72% on its own -- vbpl.vn editors haven't tagged most legacy docs.

Phạm vi → loại văn bản

Phạm vi → loại văn bản

Two-level radial split: scope (inner) → doc_type (outer, top 12 per scope). Reveals where the corpus weight sits -- dia_phuong (~66%) is mostly (decisions) and NQ (resolutions), while trung_uong mixes / (decrees) / TT (circulars).

Top 20 loại văn bản

Top 20 loại văn bản

Document types ranked by count, with the canonical short code, full Vietnamese name, and an English gloss.

Số văn bản theo năm và phạm vi

Số văn bản theo năm và phạm vi

Stacked area of documents issued per year, split by scope. The legacy CMS migration concentrates early years; modern post-2010 output is dominated by dia_phuong.

Loại văn bản qua các năm

Loại văn bản qua các năm

Top-12 doc_type × year heatmap (log₁₀ scale). Shows the shift from CT directives in the early 90s to decisions as the workhorse instrument from 2000 onwards.

Top 15 cơ quan ban hành

Top 15 cơ quan ban hành

Top issuing agencies. Quốc hội + Chính phủ + the larger ministries dominate trung_uong; provincial People's Councils / Committees split the dia_phuong half.

Phạm vi · Scope split

Bộ dữ liệu chia làm hai nhánh: trung_uong (văn bản pháp luật do Quốc hội + Chính phủ + các bộ ngành Trung ương ban hành) và dia_phuong (HĐND/UBND của 63 tỉnh, thành). — The corpus splits into trung_uong (central authorities: National Assembly, Government, ministries) and dia_phuong (the 63 provinces and cities, mostly People's Council / People's Committee output).

Value Count Share
dia_phuong 104,344 65.7%
trung_uong 54,476 34.3%

Loại văn bản · doc_type + legal_type

Mỗi văn bản được gắn slug tiếng Việt không dấu (doc_type, ví dụ quyet_dinh, nghi_dinh, thong_tu_lien_tich) lẫn tên đầy đủ tiếng Việt (legal_type, ví dụ Quyết định, Nghị định, Thông tư liên tịch). Slug được sinh tự động từ tên đầy đủ qua packages.datasites.vbpl.codes.slugify_vi nên người đọc hiểu ngay loại văn bản mà không cần tra cứu bảng mã. Mã ngắn cũ (, , TTLT, ...) vẫn xuất hiện trong số hiệu (43/2026/NĐ-CP) và có thể khôi phục từ SLUG_TO_CANONICAL_CODE. — Each document carries a self-describing ASCII snake_case slug (doc_type, e.g. quyet_dinh, nghi_dinh, thong_tu_lien_tich) and the canonical Vietnamese full name (legal_type, e.g. Quyết định, Nghị định, Thông tư liên tịch). The slug is automatically derived from the full Vietnamese name via slugify_vi so a reader can interpret the doc type without consulting a separate codebook. The compact short code (, , TTLT, ...) still appears inside so_hieu itself (43/2026/NĐ-CP) and can be recovered from any slug via the SLUG_TO_CANONICAL_CODE table in codes.py. The set of slugs follows Luật Ban hành Văn bản Quy phạm Pháp luật 2015 — hien_phap / bo_luat / luat / phap_lenh / lenh / nghi_quyet / nghi_dinh / quyet_dinh / thong_tu / chi_thi / sac_lenh / van_ban_hop_nhat / thong_tu_lien_tich / ...

By slug · doc_type

Value Count Share
quyet_dinh 84,970 53.5%
nghi_quyet 26,091 16.4%
thong_tu 16,211 10.2%
ban_dich_van_ban 10,576 6.7%
chi_thi 7,908 5.0%
nghi_dinh 4,690 3.0%
thong_tu_lien_tich 3,393 2.1%
van_ban_hop_nhat 1,792 1.1%
sac_lenh 980 0.6%
cong_van 708 0.4%
luat 580 0.4%
lenh 376 0.2%

By full name · legal_type

Value Count Share
Quyết định 84,333 53.1%
Nghị quyết 25,922 16.3%
Thông tư 15,976 10.1%
Bản dịch văn bản 10,516 6.6%
Chỉ thị 7,866 5.0%
Nghị định 4,611 2.9%
Thông tư liên tịch 3,354 2.1%
Văn bản hợp nhất 1,667 1.0%
unknown 1,439 0.9%
Sắc lệnh 961 0.6%
Công văn 704 0.4%
Luật 564 0.4%

Lĩnh vực pháp luật · legal_area

legal_area is the canonical Vietnamese label pulled from the documentFields[] block on each detail-API response (~250 distinct labels in the corpus). Roughly two thirds of the documents are tagged Chưa phân loại ("uncategorised") on the source portal; we preserve that literal so consumers can see the gap explicitly instead of nulling it. Top areas below; embedding scatters below show the structural overlap between adjacent areas.

Value Count Share
Chưa phân loại 157,687 99.3%
Quản lý thuế, phí, lệ phí và thu khác của ngân sách nhà nước 92 0.1%
Lĩnh vực giá 70 0.0%
Đất đai 65 0.0%
Ngân sách nhà nước 32 0.0%
Quản lý ngân sách nhà nước 24 0.0%
Thể dục, thể thao 22 0.0%
Chính sách thuế 20 0.0%
Chính quyền địa phương 20 0.0%
Công chức, viên chức 19 0.0%
Tổ chức- Biên chế 17 0.0%
Thi đua, khen thưởng 16 0.0%
Môi trường 15 0.0%
Bảo trợ xã hội 15 0.0%
Xuất nhập khẩu 15 0.0%
Tài nguyên khoáng sản, địa chất 14 0.0%
Quản lý hoạt động xây dựng 13 0.0%
Đường bộ 13 0.0%
Quản lý thuế, phí và lệ phí 13 0.0%
Đầu tư tại Việt Nam 12 0.0%

Cơ quan ban hành · Issuing agency

Top issuing agencies (top 15). Quốc hội + Chính phủ + Bộ Tài chính

  • Bộ Tư pháp + ... thường chiếm phần lớn trung_uong; các tỉnh chia khá đều phần dia_phuong.
Value Count Share
unknown 154,971 97.6%
Chính phủ 243 0.2%
UBND tỉnh Cần Thơ 223 0.1%
Thủ tướng Chính phủ 191 0.1%
UBND Thành phố Cần Thơ 183 0.1%
UBND Thành phố Hồ Chí Minh 132 0.1%
UBND TỈNH BÌNH ĐỊNH 114 0.1%
UBND tỉnh Bà Rịa - Vũng Tàu 109 0.1%
UBND thành phố Đà Nẵng 102 0.1%
UBND tỉnh Thừa Thiên Huế 78 0.0%
Bộ Tài chính 77 0.0%
Bộ Y tế 68 0.0%
UBND tỉnh Bến Tre 65 0.0%
HĐND tỉnh Bà Rịa - Vũng Tàu 56 0.0%
Ngân hàng Nhà nước Việt Nam 55 0.0%

Năm ban hành · Year of issue

Phân bố năm theo ngay_ban_hanh (ISO YYYY-MM-DD); rỗng nếu cổng không cung cấp được trường này. — Year distribution from ngay_ban_hanh; null when the source portal didn't expose the issue date.

Year Count
2025 87
2024 8
2023 3
2022 8
2021 8
2020 5
2019 2
2018 291
2017 1,083
2016 199
2015 449
2014 144
2013 127
2012 51
2011 43
2010 30
2009 28
2008 58
2007 176
2006 130
2005 103
2004 79
2003 52
2002 62
2001 56
2000 45
1999 34
1998 73
1997 50
1996 64

Nguồn nội dung · Body provenance

Một văn bản trên vbpl.vn có thể có HTML thân bài (do API SPA trả về sau khi qua reCAPTCHA) và/hoặc một tệp đính kèm (.pdf / .doc / .docx). Pipeline ưu tiên parse tệp khi có, quay về HTML khi không. — A vbpl document may have an inline body HTML (returned by the SPA's API after reCAPTCHA) and/or a downloadable attachment (.pdf / .doc / .docx). The pipeline prefers parsing the file when present and falls back to the HTML otherwise.

Value Count Share
body_html 147,315 92.8%
shell_html 11,505 7.2%

Lược đồ bảng documents · documents schema

The parquet has three families of columns:

Identification + meta

Field Type Description
doc_name / item_id string Stable document id (= the --<id> suffix of the source URL). Mostly numeric (186739); legacy docs use vbpqta_<n> (Văn bản pháp quy toàn văn) or vbpqdinhchinh_<n> (corrigendum).
scope string trung_uong (central) | dia_phuong (provincial).
source string Source host, always vbpl.vn.
source_url / api_url string Deep link back to the portal page / the underlying gateway API.
title string (nullable) Document subject after the full title scrub: (1) baseline cleanup (NFC, HTML-entity decode, "số số" doubling fix, trailing sentence punctuation), (2) decorative quote stripping at the title boundary and around inline phrases — leading / trailing / paired runs of ", ', ", ', ', ' are removed but word-internal single quotes are preserved so legitimate Vietnamese / loan-word names survive intact (Đắk R'lấp, M'nông, D'Ran, Côte d'Ivoire, Ea T'ling, Đạ M'ri, …), (3) leading "<Legal-type> số <Number> " boilerplate head peeled (e.g. "Quyết định số 143/QĐ-KHTC Ban hành Quy chế""Ban hành Quy chế"), and (4) every "<DocType> [số] <DocNum> [ngày <date>]" cross-reference of OTHER documents stripped from anywhere in the body ("Bãi bỏ Nghị quyết số 84/2018/NQ-HĐND ngày 07/12/2018 của HĐND tỉnh...""Bãi bỏ của HĐND tỉnh..."). The Vietnamese noun Lỗi / lỗi / loi ("fault / error") is preserved wherever it appears — it's a legitimate subject word (e.g. "Lỗi Ban hành Quy chế hoạt động của hội đồng tư vấn mua sắm tài sản"), not a CMS marker. null for the pathological tail where the entire source title was just a bare doc-num token (e.g. "1938/QĐ-UBND"); other bibliographic columns still carry the citation handle.
doc_type string Self-describing ASCII snake_case slug of the Vietnamese doc-type name (quyet_dinh, nghi_dinh, thong_tu_lien_tich, chi_thi, van_ban_hop_nhat, ...). Auto-derived from legal_type via slugify_vi; the compact short code (, , TTLT, ...) still appears in so_hieu itself (43/2026/NĐ-CP) and is recoverable via SLUG_TO_CANONICAL_CODE.
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ị, …). Round-trips with doc_type via slugify_vi.
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.
so_hieu list<string> (nullable) Document number(s) as a list of canonical short forms (e.g. ["43/2026/NĐ-CP"]). A small minority of vbpl rows pack several identifiers into one source cell separated by Vietnamese ("and") or ,; those ship as multi-element lists (e.g. ["142/2009/QĐ-TTg", "49/2012/QĐ-TTg"]). Source-side cruft is stripped: leading legal-type words ("Nghị quyết số: 528/2018/UBTVQH14"["528/2018/UBTVQH14"]), trailing annotations ("109/2005/QĐ-BCA (A11)"["109/2005/QĐ-BCA"], "49/2007/TTLT-BTC-BGD ngày 18/5/2007"["49/2007/TTLT-BTC-BGD"]), and the legitimate "Không số" ("no number") sentinel is preserved. null for rows with no usable number.
ngay_ban_hanh string Issue date, ISO YYYY-MM-DD.
year int32 Year extracted from ngay_ban_hanh.
co_quan_ban_hanh string Issuing agency (e.g. "Chính phủ", "Bộ Tài chính", "Hội đồng nhân dân tỉnh A").
trich_yeu string Abstract / summary.

Body + stats

Field Type Description
markdown string (nullable) NFC-normalised, modern-orthography Vietnamese markdown (page-segmented with ## Page N headings when parsed from a PDF). Gateway / Word / Next.js scaffolding is stripped: the Document Content\\n\\nbody { font-family: ... }\\np { margin: ... } API preamble (~50 % of bodies), Word <!-- /* Font Definitions */ @font-face { ... } p.MsoNormal { ... } --> stylesheet dumps, standalone CSS rule blocks gated by property / selector / structural CSS tells, Ant Design :where(.css-...){ ... }@keyframes ...{ ... } chains, orphan selector fragments, and malformed inline <span lang="..." style="..."> tags. ~90 % of rows lose 1-200 KB of boilerplate; total corpus markdown shrunk by ~1.77 GB / 42 %. Null when body_source == "shell_html" after the May-2026 live-API recovery (the source genuinely has no body for those legacy IDs); bibliographic metadata (title, agency, so_hieu, ...) is still populated on NULL-markdown rows so consumers retain the citation handle.
num_pages int32 Page count from the parser (PDF/DOCX only).
num_sections / num_paragraphs / num_sentences int32 Counts from the structure layer.
char_len int32 Character length of markdown after the junk-strip pass (recomputed at export time so consumers can dedupe on the actual shipped body).
text_hash string SHA-256 first-32 hex of markdown after the junk-strip pass (re-run-stable id; differs from the upstream extract.jsonl hash for any row that had scaffolding removed).
parser_model string Backend that produced the markdown (local/pypdf, local/markdownify, nvidia/nemoretriever-parse, …).
parser_runtime string The configured parser.runtime (local / nim / hybrid).
body_source string Which source produced the body: file (downloaded PDF/.doc/.docx), body_html (API-captured), shell_html (Next.js shell fallback -- the gateway never delivered a real body; published with markdown=null after the May-2026 live-API recovery sweep confirmed the source publishes only metadata for those legacy IDs).
parsed_at string ISO 8601 parser timestamp.

Hierarchy + entities

Field Type Description
structure_json string Full :class:DocumentStructure (meta + stats + sections + paragraphs + sentences) as JSON. Includes char-span back-pointers so any unit can be located in markdown precisely.
extracted_json string Generic NER + statute-link extraction (entities, relations, statute_refs) as JSON.
file_paths_json string Downloaded attachments as JSON list of {file_url, file_name, file_type, local_path}.

Quick load:

import json
from datasets import load_dataset

ds = load_dataset("tmquan/vbpl-vn", split="train")
row = ds[0]
print(row["doc_type"], row["so_hieu"], row["ngay_ban_hanh"])
# e.g. "quyet_dinh 143/QĐ-KHTC 2018-01-29"
print(row["title"])
# e.g. "Ban hành Quy chế quản lý ngân sách ngành Tư pháp"
# (the redundant "Quyết định số 143/QĐ-KHTC " head has been
#  stripped; recombine via f"{row['legal_type']} số {row['so_hieu']} {row['title']}"
#  if your downstream pipeline still wants the full original.)
structure = json.loads(row["structure_json"])
for sec in structure.get("sections", []):
    print(sec["kind"], sec["label"])

Companion stages · embed + reduce

Alongside the default documents-*.parquet shards (one row per document, with text + structure), the repo also carries the embed and reduce pipeline outputs as separate parquet bundles. Both join back to the documents table on the doc_name primary key. Only the embeddable rows (147,315 after dropping NULL-markdown docs) appear in these stages.

embed-*.parquet — dense vectors

15 shards (~93 MB each, ~1.33 GB total, 10 000 rows per shard, deterministic doc_name ordering). Schema mirrors the anle.toaan.gov.vn corpus's embed stage exactly so cross-corpus joins are straightforward:

Field Type Description
doc_name string Join key back to documents-*.parquet.
text_hash string SHA-256 of the post-normalisation markdown (stable across re-runs).
embedding list<float64> 2048-D dense vector from nvidia/llama-nemotron-embed-1b-v2 (default; other models give other dims).
embedding_dim int64 Length of embedding (denormalised for fast filtering, always 2048 in this release).
embedding_model_id string Model slug as the embedder backend reports it.
embedding_text_hash string SHA-256 of the exact text fed to the embedder (differs from text_hash when sliding-window chunking applies).
embedding_chunks_used int64 Number of windows mean-pooled into the final vector (1 when the doc fits in one window).
embedding_chunking string Chunking strategy: off / sliding / sentence.

reduce-*.parquet — 2-D projections + cluster ids

15 shards (~0.5 MB each, ~7 MB total). PCA + t-SNE + UMAP run with cfg.reducer.n_components=2 so the *_z columns that existed in the on-disk per-doc shards are dropped here. HDBSCAN cluster ids land in [-1, N] (-1 is the noise bucket).

Field Type Description
doc_name / text_hash string Join keys back to documents-*.parquet and embed-*.parquet.
pca_x / pca_y float64 2-D PCA projection of the 2048-D embedding.
tsne_x / tsne_y float64 2-D t-SNE projection.
umap_x / umap_y float64 2-D UMAP projection (the one used in the scatter PNGs above).
cluster_id int64 HDBSCAN cluster label; -1 is the noise / unclustered bucket.

Quick load (each stage is a data_files glob; the default load_dataset("tmquan/vbpl-vn") still resolves to the documents config):

from datasets import load_dataset

embed = load_dataset(
    "tmquan/vbpl-vn",
    data_files="embed-*.parquet",
    split="train",
)
print(embed[0]["doc_name"], len(embed[0]["embedding"]))
# e.g. "100000 2048"

reduce = load_dataset(
    "tmquan/vbpl-vn",
    data_files="reduce-*.parquet",
    split="train",
)
print(reduce[0]["doc_name"], reduce[0]["umap_x"], reduce[0]["cluster_id"])
# e.g. "100000 1.7142 -1"

To join embed-stage vectors back to the document metadata, do the join client-side on doc_name:

import pandas as pd

docs   = load_dataset("tmquan/vbpl-vn", split="train").to_pandas()
embed  = load_dataset("tmquan/vbpl-vn",
                      data_files="embed-*.parquet",
                      split="train").to_pandas()
joined = docs.merge(embed, on="doc_name", how="inner")
# joined now has the title / so_hieu / markdown / ... columns
# next to the 2048-D embedding vector for every embeddable doc.

Trực quan hoá embedding · Embedding visualization

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 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-18) đượ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 UMAP projection of a 2048-D embedding from nvidia/llama-nemotron-embed-1b-v2, 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 18 are collapsed into a grey Khác / Other bucket to keep the legend legible. The published reducer parquet still carries tsne_x / tsne_y columns next to umap_* for consumers who want to render t-SNE themselves.

UMAP colored by scope

UMAP colored by `scope`

UMAP colored by doc_type

UMAP colored by `doc_type`

UMAP colored by legal_type

UMAP colored by `legal_type`

UMAP colored by legal_area

UMAP colored by `legal_area`

UMAP colored by year

UMAP colored by `year`

Cách thu thập + chuẩn hoá · How the corpus was built

The crawler is a six-stage pipeline (harvestdetailparseextractembedreduce) that walks vbpl.vn's public sitemap chain (32 shards, ~160 K URLs total), drives a headless Chromium tab against each detail page so Google's invisible reCAPTCHA v2 mints the per-session Bearer token (the SPA's /api/qtdc/public/doc/... gateway is otherwise inaccessible), intercepts the resulting authenticated XHRs, downloads any .pdf / .doc / .docx attachment, and routes the body through:

  1. Parse -- pypdf for PDFs, docx2txt for .docx, an antiword / catdoc / libreoffice subprocess fallback for legacy .doc, markdownify for HTML bodies returned inline.
  2. Vietnamese normalisation -- ftfy NFC + tone-mark canonicalisation (Toà → Tòa, hoà → hòa, thuỷ → thủy) + PDF whitespace cleanup. Every regex / segmenter downstream then sees a single canonical orthography.
  3. Generic + structure extractor -- regex / dictionary NER + Vietnamese statute linker (Điều N khoản M Luật ..., dates dd/MM/yyyy, courts, agencies, document numbers) + a hierarchical DocumentStructure (sections / paragraphs / sentences with back-pointers).
  4. Embed -- nvidia/llama-nemotron-embed-1b-v2 (2048-D) over the normalised markdown; sliding-window mean pool when a doc exceeds the model's native context window.
  5. Reduce -- PCA + t-SNE + UMAP on the embedding matrix + HDBSCAN cluster ids. cuML on a GPU worker; sklearn / umap-learn / hdbscan otherwise.

All five layers are deterministic and re-runnable; re-running any stage with the same --limit is a no-op (each stage skips already-produced outputs).

Body-recovery rerun (May 2026)

A targeted retry against the public gateway https://vbpl-bientap-gateway.moj.gov.vn/api/qtdc/public/doc/<id> recovered 3,849 / 15,351 previously bodyless documents (the gateway now publishes real documentContent.content HTML for that slice even though our cached SPA fetch came back empty in 2026-04). The remaining ~11.5K are genuinely bodyless on the official vbpl source (legacy / cancelled documents the publisher no longer carries a full text for) and ship in this dataset with markdown=null. Bibliographic metadata (title, agency, document number, issue date, ...) is still populated on those rows so consumers retain the citation handle even when no body is available. Per-doc embedding parquets for the NULL-markdown rows are dropped from the embedding corpus entirely so the reducer fits on the embeddable rows only (147,315-row corpus).

Captured: 2026-05-21T09:15:08.769977+00:00.

Nguồn · Source

Giấy phép · License

Văn bản gốc được Bộ Tư pháp công bố trên cổng thông tin công cộng (Allow: / trong robots.txt). Bản phân phối lại này dùng giấy phép CC-BY-4.0; vui lòng kiểm tra điều khoản sử dụng của trang nguồn trước khi tái phân phối thương mại. — The source documents are published by the Ministry of Justice on a public portal (its robots.txt allows / and disallows only /api/). This redistribution is shared under CC-BY-4.0; please check the source-website terms of use before commercial redistribution.

Trích dẫn · Citation

If you use this dataset, please cite both the redistribution on Hugging Face and the original source (Cơ sở dữ liệu Quốc gia về pháp luật, Bộ Tư pháp Việt Nam):

@misc{vbpl_2026,
  title        = {Vietnamese National Legal Database (vbpl.vn)},
  author       = {TMQuan},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/tmquan/vbpl-vn}},
  note         = {Document-level mirror with a hierarchical structure layer (DocumentMeta + Section + Paragraph + Sentence) over Vietnam's National Legal Database, central + provincial scope.}
}

@misc{vbpl_moj_2026,
  title        = {Vietnamese National Legal Database},
  author       = {{Cơ sở dữ liệu Quốc gia về pháp luật}},
  year         = {2026},
  howpublished = {\url{https://vbpl.vn/}},
  note         = {Official portal for Vietnam's National Legal Database (laws, ordinances, decrees, circulars, decisions, ...) at central and provincial levels, published by the Ministry of Justice (Bộ Tư pháp).}
}
Downloads last month
131

Collection including tmquan/vbpl-vn