Vu Anh commited on
Commit
b742dfc
·
1 Parent(s): c32cad8

Update dataset card with comprehensive documentation

Browse files
Files changed (1) hide show
  1. README.md +82 -71
README.md CHANGED
@@ -1,104 +1,110 @@
1
  ---
2
  language:
3
- - vi
4
  license: mit
5
  size_categories:
6
- - 100<n<1K
7
  task_categories:
8
- - text-generation
9
- - text-classification
10
  tags:
11
- - legal
12
- - vietnamese
13
- - law
14
- - vietnam
15
- - corpus
16
- - legislation
17
  pretty_name: Vietnamese Legal Corpus
18
- dataset_info:
19
- features:
20
- - name: id
21
- dtype: string
22
- - name: filename
23
- dtype: string
24
- - name: title
25
- dtype: string
26
- - name: type
27
- dtype: string
28
- - name: content
29
- dtype: string
30
- - name: content_length
31
- dtype: int32
32
- splits:
33
- - name: '2021'
34
- num_bytes: 14282751
35
- num_examples: 110
36
- - name: '2023'
37
- num_bytes: 24002999
38
- num_examples: 208
39
- - name: '2026'
40
- num_bytes: 32429305
41
- num_examples: 318
42
- download_size: 20701121
43
- dataset_size: 70715055
44
- configs:
45
- - config_name: default
46
- data_files:
47
- - split: '2021'
48
- path: data/2021-*
49
- - split: '2023'
50
- path: data/2023-*
51
- - split: '2026'
52
- path: data/2026-*
53
  ---
54
 
55
  # Vietnamese Legal Corpus (UTS_VLC)
56
 
57
- A comprehensive dataset of Vietnamese laws and legal codes.
58
 
59
  ## Dataset Description
60
 
61
- This dataset contains 318 Vietnamese legal documents including:
62
- - **6 Codes (Bo luat)**: Civil Code, Criminal Code, Labor Code, etc.
63
- - **312 Laws (Luat)**: Various laws from 1945 to 2024
64
 
65
- ## Splits
66
 
67
  | Split | Documents | Description |
68
  |-------|-----------|-------------|
69
- | 2026 | 318 | Full corpus as of January 2026 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  ## Features
72
 
73
- - `id`: Document identifier
74
- - `filename`: Source filename
75
- - `title`: Vietnamese title
76
- - `title_en`: English title
77
- - `type`: "code" or "law"
78
- - `year`: Year of enactment
79
- - `document_number`: Official document number
80
- - `effective_date`: Date when law became effective
81
- - `status`: Current status (Active/Amended/Repealed)
82
- - `url`: Source URL
83
- - `has_content`: Whether full text is available
84
- - `content`: Full text content
85
- - `content_length`: Character count
86
 
87
  ## Usage
88
 
89
  ```python
90
  from datasets import load_dataset
91
 
92
- # Load the 2026 split
93
- ds = load_dataset("undertheseanlp/UTS_VLC", split="2026")
94
 
95
- # Filter only documents with content
96
- ds_with_content = ds.filter(lambda x: x["has_content"])
97
 
98
- # Get all codes
99
- codes = ds.filter(lambda x: x["type"] == "code")
 
 
 
 
100
  ```
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  ## License
103
 
104
  MIT License
@@ -106,7 +112,7 @@ MIT License
106
  ## Citation
107
 
108
  ```bibtex
109
- @dataset{uts_vlc_2026,
110
  title={Vietnamese Legal Corpus},
111
  author={Underthesea NLP},
112
  year={2026},
@@ -114,3 +120,8 @@ MIT License
114
  url={https://huggingface.co/datasets/undertheseanlp/UTS_VLC}
115
  }
116
  ```
 
 
 
 
 
 
1
  ---
2
  language:
3
+ - vi
4
  license: mit
5
  size_categories:
6
+ - 100<n<1K
7
  task_categories:
8
+ - text-generation
9
+ - text-classification
10
  tags:
11
+ - legal
12
+ - vietnamese
13
+ - law
14
+ - vietnam
15
+ - corpus
16
+ - legislation
17
  pretty_name: Vietnamese Legal Corpus
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
 
20
  # Vietnamese Legal Corpus (UTS_VLC)
21
 
22
+ A comprehensive dataset of Vietnamese laws and legal codes, maintained by [Underthesea NLP](https://github.com/undertheseanlp).
23
 
24
  ## Dataset Description
25
 
26
+ This dataset contains Vietnamese legal documents including the Constitution, Codes (Bộ luật), and Laws (Luật) from 1945 to 2025.
 
 
27
 
28
+ ### Splits
29
 
30
  | Split | Documents | Description |
31
  |-------|-----------|-------------|
32
+ | 2021 | 110 | Original corpus with full text |
33
+ | 2023 | 208 | Expanded corpus with processed text |
34
+ | 2026 | 318 | Latest corpus with 2022-2025 laws |
35
+
36
+ ### Document Types
37
+
38
+ - **Constitution (Hiến pháp)**: 1 document (2013 Constitution)
39
+ - **Codes (Bộ luật)**: 6 major codes
40
+ - Civil Code 2015 (Bộ luật Dân sự)
41
+ - Civil Procedure Code 2015 (Bộ luật Tố tụng Dân sự)
42
+ - Criminal Code 2015 (Bộ luật Hình sự)
43
+ - Criminal Procedure Code 2015 (Bộ luật Tố tụng Hình sự)
44
+ - Maritime Code 2015 (Bộ luật Hàng hải)
45
+ - Labor Code 2019 (Bộ luật Lao động)
46
+ - **Laws (Luật)**: 300+ laws covering various domains
47
+
48
+ ### Recent Laws (2022-2025)
49
+
50
+ The 2026 split includes laws passed by the 15th National Assembly:
51
+ - **2022**: 8 laws (Inspection, Anti-Money Laundering, IP, Insurance, Cinema, etc.)
52
+ - **2023**: 12 laws (E-Transactions, Consumer Protection, Bidding, Telecoms, Housing, etc.)
53
+ - **2024**: 24 laws (Land, Credit Institutions, Roads, Data, Electricity, Social Insurance, etc.)
54
+ - **2025**: 50+ laws including landmark legislation:
55
+ - **AI Law** (Luật Trí tuệ nhân tạo) - First AI law in Vietnam
56
+ - **E-commerce Law** (Luật Thương mại điện tử)
57
+ - **Digital Transformation Law** (Luật Chuyển đổi số)
58
+ - **Personal Data Protection Law** (Luật Bảo vệ dữ liệu cá nhân)
59
 
60
  ## Features
61
 
62
+ | Feature | Type | Description |
63
+ |---------|------|-------------|
64
+ | id | string | Document identifier (slug) |
65
+ | filename | string | Source filename |
66
+ | title | string | Vietnamese title |
67
+ | type | string | Document type: "code", "law", or "constitution" |
68
+ | content | string | Full text content |
69
+ | content_length | int32 | Character count |
 
 
 
 
 
70
 
71
  ## Usage
72
 
73
  ```python
74
  from datasets import load_dataset
75
 
76
+ # Load all splits
77
+ ds = load_dataset("undertheseanlp/UTS_VLC")
78
 
79
+ # Load specific split
80
+ ds_2026 = load_dataset("undertheseanlp/UTS_VLC", split="2026")
81
 
82
+ # Filter by type
83
+ codes = ds_2026.filter(lambda x: x["type"] == "code")
84
+ laws = ds_2026.filter(lambda x: x["type"] == "law")
85
+
86
+ # Search by title
87
+ land_law = ds_2026.filter(lambda x: "Đất đai" in x["title"])
88
  ```
89
 
90
+ ## Statistics
91
+
92
+ | Metric | 2021 | 2023 | 2026 |
93
+ |--------|------|------|------|
94
+ | Documents | 110 | 208 | 318 |
95
+ | Total Characters | ~14M | ~21M | ~24M |
96
+ | Codes | 6 | 6 | 6 |
97
+ | Laws | 104 | 202 | 312 |
98
+
99
+ ## Data Source
100
+
101
+ Documents were collected from [Thu Vien Phap Luat](https://thuvienphapluat.vn/), the official Vietnamese legal document database.
102
+
103
+ ## References
104
+
105
+ - [Vietnam's System of Legal Documents](https://vietnamlawmagazine.vn/vietnams-system-of-legal-documents-5017.html)
106
+ - [National Assembly of Vietnam](https://quochoi.vn/)
107
+
108
  ## License
109
 
110
  MIT License
 
112
  ## Citation
113
 
114
  ```bibtex
115
+ @dataset{uts_vlc,
116
  title={Vietnamese Legal Corpus},
117
  author={Underthesea NLP},
118
  year={2026},
 
120
  url={https://huggingface.co/datasets/undertheseanlp/UTS_VLC}
121
  }
122
  ```
123
+
124
+ ## Maintainers
125
+
126
+ - [Underthesea NLP](https://github.com/undertheseanlp)
127
+ - Contact: underthesea.nlp@gmail.com