Dataset Viewer
Auto-converted to Parquet Duplicate
doc_name
stringlengths
10
10
source
stringclasses
1 value
detail_url
stringlengths
84
84
pdf_url
stringclasses
0 values
doc_code
stringlengths
10
17
doc_type
stringclasses
2 values
case_type
stringclasses
6 values
doc_subtype
stringclasses
4 values
year
int32
2.01k
2.03k
title
stringlengths
16
69
subject
stringlengths
3
176
issue_date
stringdate
2006-01-17 00:00:00
2025-06-25 00:00:00
issuing_body
stringclasses
37 values
court_level
stringclasses
4 values
jurisdiction
stringclasses
23 values
markdown
stringlengths
1.42k
218k
num_pages
int32
1
90
num_sections
int32
1
9
num_paragraphs
int32
7
1.05k
num_sentences
int32
18
2.35k
char_len
int32
1.42k
218k
text_hash
stringlengths
32
32
parser_model
stringclasses
1 value
parsed_at
stringdate
2026-05-20 17:41:33
2026-05-20 17:56:36
confidence
float64
structure_json
stringlengths
12.8k
1.39M
extracted_json
stringlengths
818
70.8k
precedent_number
stringclasses
19 values
adopted_date
stringdate
1952-03-03 00:00:00
2025-06-25 00:00:00
applied_article_code
stringclasses
2 values
applied_article_number
int64
1
705
applied_article_clause
int64
principle_text
stringclasses
5 values
TAND192001
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192001
null
38/2021/DS-PT
ban_an
dan_su
phuc_tham
2,021
Bản án số: 38/2021/DS-PT
Tranh chấp hợp đồng đặt cọc
2021-03-11
TÒA ÁN NHÂN DÂN THÀNH PHỐ CẦN THƠ
tinh
CẦN THƠ
## Page 1 1 TÒA ÁN NHÂN DÂN CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM THÀNH PHỐ CẦN THƠ Độc lập- Tự do- Hạnh phúc Bản án số: 38/2021/DS-PT Ngày: 11-3-2021 “V/v: Tranh chấp hợp đồng đặt cọc” NHÂN DANH NƯỚC CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM TÒA ÁN NHÂN DÂN THÀNH PHỐ CẦN THƠ Với thành phần Hội đồng xét xử phúc thẩm gồm...
9
5
44
112
17,324
f33d817a4c169f9c8bad6d6b5f0d30be
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
{"schema_version": "1.0", "doc_id": "TAND192001", "meta": {"doc_id": "TAND192001", "doc_name": "TAND192001", "doc_type": "ban_an", "doc_subtype": "phuc_tham", "case_type": "dan_su", "doc_code": "38/2021/DS-PT", "doc_number": "38", "year": 2021, "title": "Bản án số: 38/2021/DS-PT", "subject": "Tranh chấp hợp đồng đặt cọ...
{"doc_id": "TAND192001", "text_hash": "f33d817a4c169f9c8bad6d6b5f0d30be", "char_len": 17324, "entities": [{"tag": "DATE", "text": "08/7/2020", "start": 867, "end": 876}, {"tag": "DATE", "text": "09/12/2020", "start": 1274, "end": 1284}, {"tag": "DATE", "text": "23/12/2016", "start": 1894, "end": 1904}, {"tag": "DATE", ...
null
2020-07-08
null
468
null
null
TAND192004
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192004
null
50/2021/QĐST-HNGĐ
quyet_dinh
hon_nhan_gia_dinh
null
2,021
Số: 50/2021/QĐST-HNGĐ
null
2021-03-25
TÒA ÁN NHÂN DÂN HUYỆN LỤC NGẠN TỈNH BẮC GIANG
huyen
LỤC NGẠN
## Page 1 TÒA ÁN NHÂN DÂN HUYỆN LỤC NGẠN TỈNH BẮC GIANG CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM Độc lập - Tự do - Hạnh phúc Số: 50/2021/QĐST-HNGĐ Lục Ngạn, ngày 25 tháng 3 năm 2021 QUYẾT ĐỊNH CÔNG NHẬN THUẬN TÌNH LY HÔN VÀ SỰ THỎA THUẬN CỦA CÁC ĐƯƠNG SỰ Căn cứ vào hồ sơ hôn nhân và gia đình thụ lý số: 53/2021/TLST-HNGĐ...
2
5
21
35
2,653
1d4131c44d46927d10f1d8efdc9d4b1a
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
{"schema_version": "1.0", "doc_id": "TAND192004", "meta": {"doc_id": "TAND192004", "doc_name": "TAND192004", "doc_type": "quyet_dinh", "doc_subtype": null, "case_type": "hon_nhan_gia_dinh", "doc_code": "50/2021/QĐST-HNGĐ", "doc_number": "50", "year": 2021, "title": "Số: 50/2021/QĐST-HNGĐ", "subject": null, "issue_date"...
{"doc_id": "TAND192004", "text_hash": "1d4131c44d46927d10f1d8efdc9d4b1a", "char_len": 2653, "entities": [{"tag": "DATE", "text": "08/9/2017", "start": 1697, "end": 1706}, {"tag": "ORG-COURT", "text": "TÒA ÁN NHÂN DÂN", "start": 11, "end": 26}, {"tag": "ORG-COURT", "text": "TAND tỉnh Bắc Giang;", "start": 2473, "end": 2...
null
2017-09-08
null
147
null
null
TAND192005
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192005
null
90/2021/DS-GĐT
quyet_dinh
dan_su
giam_doc_tham
2,021
Số:90/2021/DS-GĐT
Tranh chấp hợp đồng dịch vụ
2021-03-18
TÒA ÁN NHÂN DÂN CẤP CAO TẠI THÀNH PHỐ HỒ CHÍ MINH
cap_cao
HỒ CHÍ MINH
"## Page 1\n\n1\n\n\nTÒA ÁN NHÂN DÂN CẤP CAO\nTẠI THÀNH PHỐ HỒ CHÍ MINH\n\nQuyết đ(...TRUNCATED)
5
5
29
68
11,749
154614365ae79c60c8eac60279995368
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192005\", \"meta\": {\"doc_id\": \"TAND192005\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192005\", \"text_hash\": \"154614365ae79c60c8eac60279995368\", \"char_len\": 117(...TRUNCATED)
null
2021-03-18
null
159
null
null
TAND192012
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192012
null
136/2021/HS-PT
ban_an
hinh_su
phuc_tham
2,021
Bản án số: 136/2021/HS-PT
null
2021-03-10
TÒA ÁN NHÂN DÂN CẤP CAO TẠI THÀNH PHỐ HỒ CHÍ MINH
cap_cao
HỒ CHÍ MINH
"## Page 1\n\n1\n\n TÒA ÁN NHÂN DÂN CẤP CAO CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM\nT(...TRUNCATED)
5
5
34
74
11,010
d557af587f21bd107de8bdf7c271823d
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192012\", \"meta\": {\"doc_id\": \"TAND192012\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192012\", \"text_hash\": \"d557af587f21bd107de8bdf7c271823d\", \"char_len\": 110(...TRUNCATED)
null
2020-11-19
null
123
null
null
TAND192016
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192016
null
08/2021/HNGĐ-PT
ban_an
hon_nhan_gia_dinh
phuc_tham
2,021
Bản án số: 08/2021/HNGĐ-PT
ly hôn, tranh chấp con chung
2021-04-20
TÒA ÁN NHÂN DÂN THÀNH PHỐ ĐÀ NẴNG
tinh
ĐÀ NẴNG
"## Page 1\n\n1\nTÒA ÁN NHÂN DÂN CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM\n THÀNH PHỐ Đ(...TRUNCATED)
10
5
63
152
25,189
30d51f856ab964ca7b4c8089118c07cb
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192016\", \"meta\": {\"doc_id\": \"TAND192016\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192016\", \"text_hash\": \"30d51f856ab964ca7b4c8089118c07cb\", \"char_len\": 251(...TRUNCATED)
null
2009-01-12
null
357
null
null
TAND192018
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192018
null
09/2021/DS-PT
ban_an
dan_su
phuc_tham
2,021
Bản án số: 09/2021/DS - PT
Tranh chấp quyền sử dụng đất
2021-04-19
TÒA ÁN NHÂN DÂN TỈNH LÀO CAI
tinh
LÀO CAI
"## Page 1\n\n1\n\nTÒA ÁN NHÂN DÂN\nTỈNH LÀO CAI\n\nBản án số: 09/2021/DS - PT\nNgày 19(...TRUNCATED)
9
5
40
135
23,752
e654bcfd83b9ccbabe78c0ae39533683
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192018\", \"meta\": {\"doc_id\": \"TAND192018\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192018\", \"text_hash\": \"e654bcfd83b9ccbabe78c0ae39533683\", \"char_len\": 237(...TRUNCATED)
null
2021-04-19
null
26
null
null
TAND192021
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192021
null
10/2021/KDTM-PT
ban_an
kinh_doanh_thuong_mai
phuc_tham
2,021
Bản án số: 10/2021/KDTM - PT
Tranh chấp giữa thành viên
2021-04-02
TÒA ÁN NHÂN DÂN CẤP CAO TẠI ĐÀ NẴNG
cap_cao
null
"## Page 1\n\n1\n\nTÒA ÁN NHÂN DÂN CẤP CAO\nTẠI ĐÀ NẴNG\nCỘNG HÒA XÃ HỘI CHỦ NGH(...TRUNCATED)
16
5
93
230
40,036
1b8a3fdf14f2a07c3c350a3b1999e9e0
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192021\", \"meta\": {\"doc_id\": \"TAND192021\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192021\", \"text_hash\": \"1b8a3fdf14f2a07c3c350a3b1999e9e0\", \"char_len\": 400(...TRUNCATED)
null
2021-04-02
null
48
null
null
TAND192022
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192022
null
11/2021/HNGĐ-ST
ban_an
hon_nhan_gia_dinh
so_tham
2,021
Bản án số: 11/2021/HNGĐ-ST
tranh chấp ly hôn.
2021-04-26
TÒA ÁN NHÂN DÂN QUẬN CẦU GIẤY THÀNH PHỐ HÀ NỘI
huyen
CẦU GIẤY
"## Page 1\n\nTÒA ÁN NHÂN DÂN\nQUẬN CẦU GIẤY\nTHÀNH PHỐ HÀ NỘI\n\nCỘNG HÒA XÃ H(...TRUNCATED)
6
5
38
100
9,886
ebcbbc01062e6d9c3bba2f71a90b5036
nvidia/nemoretriever-parse
2026-05-20T17:41:36+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192022\", \"meta\": {\"doc_id\": \"TAND192022\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192022\", \"text_hash\": \"ebcbbc01062e6d9c3bba2f71a90b5036\", \"char_len\": 988(...TRUNCATED)
null
2021-04-26
null
35
null
null
TAND192023
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192023
null
23/2021/DS-ST
ban_an
dan_su
so_tham
2,021
Bản án số: 23/2021/DS-ST
Tranh chấp đòi tài sản
2021-04-26
TÒA ÁN NHÂN DÂN THÀNH PHỐ ĐÀ NẴNG
tinh
ĐÀ NẴNG
"## Page 1\n\n1\n\nTÒA ÁN NHÂN DÂN\nTHÀNH PHỐ ĐÀ NẴNG\n——————————\nB(...TRUNCATED)
14
5
57
152
24,165
49cd00e2b78872b909ede4d9e542f941
nvidia/nemoretriever-parse
2026-05-20T17:41:35+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192023\", \"meta\": {\"doc_id\": \"TAND192023\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192023\", \"text_hash\": \"49cd00e2b78872b909ede4d9e542f941\", \"char_len\": 241(...TRUNCATED)
null
2021-04-26
null
166
null
null
TAND192024
anle.toaan.gov.vn
https://anle.toaan.gov.vn/webcenter/portal/anle/chitietnguonanle?dDocName=TAND192024
null
171/2021/DS-PT
ban_an
dan_su
phuc_tham
2,021
Bản án số: 171/2021/DS-PT
Tranh chấp quyền sử dụng đất;
2021-04-08
TÒA ÁN NHÂN DÂN CẤP CAO TẠI THÀNH PHỐ HỒ CHÍ MINH
cap_cao
HỒ CHÍ MINH
"## Page 1\n\nTÒA ÁN NHÂN DÂN CẤP CAO\nTẠI THÀNH PHỐ HỒ CHÍ MINH\n\nBản án số: 17(...TRUNCATED)
17
5
51
219
42,589
2946b24fc4c96639ba5b835e58f71cff
nvidia/nemoretriever-parse
2026-05-20T17:41:35+00:00
null
"{\"schema_version\": \"1.0\", \"doc_id\": \"TAND192024\", \"meta\": {\"doc_id\": \"TAND192024\", \"(...TRUNCATED)
"{\"doc_id\": \"TAND192024\", \"text_hash\": \"2946b24fc4c96639ba5b835e58f71cff\", \"char_len\": 425(...TRUNCATED)
null
2009-04-20
null
357
null
null
End of preview. Expand in Data Studio

Vietnamese Án lệ Corpus — anle.toaan.gov.vn

🇻🇳 Tóm tắt. Bộ dữ liệu đa cấp của các bản án + án lệ Việt Nam thu thập từ cổng anle.toaan.gov.vn của Tòa án nhân dân tối cao. Mỗi văn bản pháp lý đi kèm markdown đã chuẩn hoá tiếng Việt (NFC + chính tả hiện đại) và lớp cấu trúc phân cấp đầy đủ: document → section → paragraph → sentence. Bộ dữ liệu ship bốn cấu hình HF tương ứng bốn giai đoạn pipeline: documents (mặc định) · sentences (mức câu) · embed (vector 2048-D) · reduce (PCA / t-SNE / UMAP + cụm HDBSCAN).

🇬🇧 Summary. Multi-level corpus of Vietnamese court judgments and precedents (án lệ) harvested from anle.toaan.gov.vn (Supreme People's Court portal). Every document carries a Vietnamese-normalised markdown body (NFC + modern orthography) and a hierarchical structure layer: document → section → paragraph → sentence, every unit carrying a stable id + char span back into the markdown. The dataset ships four HF configurations matching the four pipeline stages: documents (default) · sentences (sentence-level rows) · embed (2048-D vectors) · reduce (PCA / t-SNE / UMAP + HDBSCAN clusters).

Tổng quan · At a glance

Chỉ số · Metric Giá trị · Value
Văn bản · Documents 1,963
Câu · Sentences (across the corpus) 273,379
Có cấu trúc · With structure layer 1,963
Có số án lệ · With precedent number 51
Có embedding · With embedding vector 1,963
Có projection · With reduce projections 1,963
Trung vị trang · Median pages / doc 9
Trung vị ký tự · Median chars / doc 19,939
Trung vị đoạn văn · Median paragraphs / doc 47
Trung vị câu · Median sentences / doc 122

Phân loại · Document classes

Loại văn bản · doc_type

Value Count Share
ban_an 1,155 58.8%
quyet_dinh 784 39.9%
unknown 24 1.2%

Lĩnh vực · case_type

Value Count Share
dan_su 860 43.8%
hinh_su 481 24.5%
hanh_chinh 308 15.7%
unknown 163 8.3%
kinh_doanh_thuong_mai 99 5.0%
hon_nhan_gia_dinh 44 2.2%
lao_dong 8 0.4%

Cấp xét xử · doc_subtype

Value Count Share
phuc_tham 1,104 56.2%
giam_doc_tham 718 36.6%
unknown 105 5.3%
so_tham 18 0.9%
tai_tham 18 0.9%

Cấp toà · court_level

Value Count Share
cap_cao 1,731 88.2%
unknown 138 7.0%
toi_cao 70 3.6%
tinh 13 0.7%
huyen 11 0.6%

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

The default config carries one row per document with three families of columns:

Identification + meta

Field Type Description
doc_name string Stable document id (== source dDocName query parameter).
source string Source host, always anle.toaan.gov.vn.
detail_url / pdf_url string Deep link back to the portal page / PDF.
doc_code string E.g. 38/2021/DS-PT (sequence/year/case-type-procedure).
doc_type string ban_an | quyet_dinh | an_le | ban_cao_trang.
case_type string dan_su | hinh_su | hon_nhan_gia_dinh | lao_dong | kinh_doanh_thuong_mai | hanh_chinh.
doc_subtype string so_tham | phuc_tham | giam_doc_tham | tai_tham | an_le.
year int32 Year extracted from doc_code.
title string Header line as captured.
subject string V/v ... matter line.
issue_date string ISO 8601 issue date when discoverable.
issuing_body string Full court name.
court_level string huyen | tinh | cap_cao | toi_cao.
jurisdiction string Province / city qualifier extracted from the body.

Body + stats

Field Type Description
markdown string NFC-normalised, modern-orthography Vietnamese markdown (page-segmented with ## Page N headings).
num_pages / num_sections / num_paragraphs / num_sentences int32 Counts from the structure layer.
char_len int32 Character length of markdown.
text_hash string SHA-256 first-32 hex of markdown (re-run-stable id).
parser_model / parsed_at string Provenance for the parse stage.

Hierarchy + entities

Field Type Description
structure_json string Full DocumentStructure (meta + stats + sections + paragraphs + sentences) as JSON; round-trips via json.loads.
extracted_json string Regex NER + statute-link output (entities, relations, statute_refs) as JSON.

Precedent layer (án-lệ-only)

Field Type Description
precedent_number string E.g. Án lệ số 47/2021/AL. None for plain judgments.
adopted_date string ISO 8601 adoption date.
applied_article_code / applied_article_number / applied_article_clause string / int64 / int64 Most-cited statute reference.
principle_text string "Nội dung án lệ" / "Nguyên tắc" excerpt when present.

Quick load:

import json
from datasets import load_dataset

ds = load_dataset("tmquan/anle-toaan-gov-vn", split="train")  # documents config
row = ds[0]
structure = json.loads(row["structure_json"])
print(structure["meta"]["doc_code"])
for sec in structure["sections"]:
    print(sec["kind"], sec["label"])

Companion stages · sentences + embed + reduce

Alongside the default documents-*.parquet shards (one row per document, with markdown + structure), the dataset ships up to three additional parquet bundles that mirror the extract → embed → reduce stages 1-to-1. All three join back to the documents table on the doc_name primary key.

sentences-*.parquet — sentence-level rows

One row per sentence; the full hierarchical structure (section → paragraph → sentence) is exposed as flat parquet rows so consumers can stream, filter, and embed sentences directly without parsing the structure_json blob.

Field Type Description
doc_name string Join key back to documents-*.parquet.
sentence_id string Stable per-corpus sentence id (<doc_id>::s<g> form).
paragraph_id / section_id string Parent paragraph / section ids.
case_type / doc_type / doc_subtype / court_level / year / precedent_number string / int32 Parent-document filter columns (promoted so consumers can slice without joining).
section_kind string header | case_summary | findings | decision | footer.
paragraph_kind string text | numbered_finding | numbered_decision | list_item | signature | ...
paragraph_marker string The marker as it appears in the body (e.g. [1], 1., -).
page int32 Page number inside the parent PDF.
index_in_paragraph / global_index int32 Position inside the parent paragraph / inside the document.
char_start / char_end int32 Char span back into the parent markdown.
text string The sentence itself, NFC-normalised.

Quick load:


from datasets import load_dataset


sents = load_dataset("tmquan/anle-toaan-gov-vn", "sentences", split="train")
print(sents[0]["text"])
# Filter to all sentences from civil-law cassation precedents
civil_cassation = sents.filter(
    lambda r: r["case_type"] == "dan_su" and r["doc_subtype"] == "giam_doc_tham"
)

embed-*.parquet — dense vectors

One row per embeddable document (1,963 rows). The default embedder is nvidia/llama-nemotron-embed-1b-v2 (2048-D). The full set of predefined models the pipeline can route to is published in manifest.json["pipeline"]["embed"]["registry"]:

Model Dim Native window Notes
nvidia/llama-nemotron-embed-1b-v2 2048 8192 Default. 1B params, 8k context.
nvidia/llama-3.2-nv-embedqa-1b-v2 1024 512 Previous ViLA default (retrieval, 512-tok window).
nvidia/llama-embed-nemotron-8b 4096 8192 8B params, higher quality.
sentence-transformers/paraphrase-multilingual-mpnet-base-v2 768 128 Multilingual MPNet (50+ langs incl. VI).
microsoft/harrier-oss-v1-270m 32768 270 M params, 32k native context.
microsoft/harrier-oss-v1-0.6b 32768 Lightweight HF default; 32k native.
microsoft/harrier-oss-v1-27b 32768 Highest quality in the harrier-oss family.
Field Type Description
doc_name string Join key back to documents-*.parquet.
text_hash string SHA-256 of the post-normalisation markdown.
embedding list<float32> 2048-D dense vector.
embedding_dim int64 Length of embedding (denormalised for fast filtering).
embedding_model_id string Model slug as the backend reports it.
embedding_text_hash string SHA-256 of the exact text fed to the embedder.
embedding_chunks_used int64 Windows mean-pooled into the final vector (1 if the doc fits in one window).
embedding_chunking string off / sliding / sentence.

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

One row per embeddable document. Every method in ['pca', 'tsne', 'umap'] runs over the full embedding matrix with n_components=2; the clusterer is hdbscan (label -1 = noise bucket).

Field Type Description
doc_name / text_hash string Join keys back to documents-*.parquet and embed-*.parquet.
pca_x float64 PCA projection (axis x).
pca_y float64 PCA projection (axis y).
tsne_x float64 TSNE projection (axis x).
tsne_y float64 TSNE projection (axis y).
umap_x float64 UMAP projection (axis x).
umap_y float64 UMAP projection (axis y).
cluster_id int64 HDBSCAN cluster label; -1 is the noise bucket.

Join back to documents:


from datasets import load_dataset

docs   = load_dataset("tmquan/anle-toaan-gov-vn", "documents", split="train").to_pandas()
embed  = load_dataset("tmquan/anle-toaan-gov-vn", "embed",     split="train").to_pandas()
reduce = load_dataset("tmquan/anle-toaan-gov-vn", "reduce",    split="train").to_pandas()
joined = docs.merge(embed, on="doc_name").merge(reduce, on="doc_name")

Trực quan hoá embedding · Embedding visualization

Mỗi điểm là một văn bản; 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. Mỗi hình một hàng. — Each dot is one document; coordinates are the 2D UMAP projection of a 2048-D embedding from nvidia/llama-nemotron-embed-1b-v2, with HDBSCAN cluster ids. One figure per row.

PCA và t-SNE vẫn được tính sẵn và lưu trong reduce-*.parquet (pca_{x,y,z}, tsne_{x,y,z}) — chỉ không vẽ trong card này. — PCA and t-SNE coordinates are still pre-computed and shipped in reduce-*.parquet (pca_{x,y,z}, tsne_{x,y,z}); they are simply not rendered inline here.

UMAP colored by case_type

UMAP colored by `case_type`

UMAP colored by doc_subtype

UMAP colored by `doc_subtype`

UMAP colored by court_level

UMAP colored by `court_level`

UMAP colored by cluster_id

UMAP colored by `cluster_id`

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

The pipeline is a five-stage NeMo Curator flow (download → parse → extract → embed → reduce) defined under packages/datasites/anle:

  1. Download — walks the paginated Nguồn án lệ + curated Án lệ listings, downloads each PDF.
  2. Parsepypdf for digital PDFs, falls back to nvidia/nemoretriever-parse for image-only scans (hybrid runtime). Output is NFC-normalised Vietnamese markdown with modern orthography.
  3. Extract — three deterministic layers:
    • Generic — regex + dictionary NER (dates, courts, articles, precedent numbers) and statute linking (Điều N khoản M Bộ luật ...).
    • Site (precedent) — normalises án lệ metadata onto a stable schema (precedent_number, adopted_date, applied_article_*, principle_text).
    • Structure — segments markdown into the canonical five-section template (header → case_summary → findings → decision → footer), paragraphs (with marker classification: numbered_finding [1], numbered_decision 1., list_item -, text, signature), and sentences (regex split on [.?!] + capital).
  4. Embed — default model: nvidia/llama-nemotron-embed-1b-v2 (2048-D vector). Sliding-window chunking + mean-pool when a doc exceeds the model's native context window. The set of predefined embedding models the pipeline can route to is published in manifest.json["pipeline"]["embed"]["registry"].
  5. Reduce — every method in pca, tsne, umap runs over the full embedding matrix; HDBSCAN labels the cluster id. cuML on a GPU worker; sklearn / umap-learn / hdbscan otherwise.

All five layers are deterministic and re-runnable.

Captured: 2026-05-21T08:04:01.313084+00:00.

Nguồn · Source

Giấy phép · License

Văn bản gốc được Toà án nhân dân tối cao công bố trên cổng thông tin công cộng. 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 Supreme People's Court on a public portal. 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 (Tòa án nhân dân tối cao):

@misc{anle_2026,
  title        = {Vietnamese Án lệ + Bản án Corpus (anle.toaan.gov.vn)},
  author       = {TMQuan},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/tmquan/anle-toaan-gov-vn}},
  note         = {Multi-level mirror with hierarchical structure (DocumentMeta + Section + Paragraph + Sentence), 2048-D embeddings, and 2D projections over the Vietnamese án-lệ portal.}
}

@misc{anle_toaan_2026,
  title        = {Vietnamese Án lệ + Bản án Corpus},
  author       = {{Án lệ — Tòa án nhân dân tối cao}},
  year         = {2026},
  howpublished = {\url{https://anle.toaan.gov.vn/}},
  note         = {Official portal for Vietnamese án lệ (precedents) + nguồn án lệ (precedent source materials), published by the Supreme People's Court (Tòa án nhân dân tối cao).}
}
Downloads last month
4,263

Collection including tmquan/anle-toaan-gov-vn