tmquan commited on
Commit
00737f1
·
verified ·
1 Parent(s): 44153ab

Rebuild: English 28-col documents schema, sentence-grounded citations (ref/Mục/span/sentence_id), Nemotron-3-8B sentence-chunk embeddings, PCA/t-SNE/UMAP, citation Sankey

Browse files
README.md CHANGED
@@ -70,234 +70,165 @@ configs:
70
  | Chỉ số · Metric | Giá trị · Value |
71
  |---|---:|
72
  | Văn bản · Documents | **1,844** |
73
- | Câu · Sentences (across the corpus) | 259,838 |
74
- | cấu trúc · With structure layer | 1,844 |
75
- | số án lệ · With precedent number | 50 |
76
- | embedding · With embedding vector | 1,844 |
77
- | Có projection · With reduce projections | 1,844 |
 
78
  | Trung vị trang · Median pages / doc | 9 |
79
- | Trung vị ký tự · Median chars / doc | 20,517 |
80
- | Trung vị đoạn văn · Median paragraphs / doc | 46 |
81
- | Trung vị câu · Median sentences / doc | 123 |
82
 
83
  ## Phân loại · Document classes
84
 
85
- ### Loại văn bản · `doc_type`
86
 
87
- | Value | Count | Share |
88
- |---|---:|---:|
89
- | `ban_an` | 1,139 | 61.8% |
90
- | `quyet_dinh` | 698 | 37.9% |
91
- | `unknown` | 7 | 0.4% |
92
-
93
- ### Lĩnh vực · `case_type`
94
 
95
  | Value | Count | Share |
96
  |---|---:|---:|
97
- | `dan_su` | 829 | 45.0% |
98
- | `hinh_su` | 457 | 24.8% |
99
- | `hanh_chinh` | 305 | 16.5% |
100
- | `unknown` | 105 | 5.7% |
101
- | `kinh_doanh_thuong_mai` | 97 | 5.3% |
102
- | `hon_nhan_gia_dinh` | 43 | 2.3% |
103
- | `lao_dong` | 8 | 0.4% |
104
 
105
- ### Cấp xét xử · `doc_subtype`
106
 
107
  | Value | Count | Share |
108
  |---|---:|---:|
109
- | `phuc_tham` | 1,066 | 57.8% |
110
- | `giam_doc_tham` | 672 | 36.4% |
111
- | `unknown` | 73 | 4.0% |
112
- | `tai_tham` | 17 | 0.9% |
113
- | `so_tham` | 16 | 0.9% |
114
 
115
- ### Cấp toà · `court_level`
116
 
117
  | Value | Count | Share |
118
  |---|---:|---:|
119
- | `cap_cao` | 1,731 | 93.9% |
120
- | `toi_cao` | 70 | 3.8% |
121
- | `unknown` | 20 | 1.1% |
122
- | `tinh` | 12 | 0.7% |
123
- | `huyen` | 11 | 0.6% |
 
 
124
 
125
  ## Lược đồ bảng `documents` · `documents` schema
126
 
127
- The default config carries one row per document with three families
128
- of columns:
129
 
130
- ### Identification + meta
131
 
132
- | Field | Type | Description |
133
- |---|---|---|
134
- | `doc_name` | string | Stable document id (== source `dDocName` query parameter). |
135
- | `source` | string | Source host, always `anle.toaan.gov.vn`. |
136
- | `detail_url` / `pdf_url` | string | Deep link back to the portal page / PDF. |
137
- | `doc_code` | string | E.g. `38/2021/DS-PT` (sequence/year/case-type-procedure). |
138
- | `doc_type` | string | Structure-layer form of the underlying document. Full taxonomy: `ban_an` \| `quyet_dinh` \| `an_le` \| `ban_cao_trang`; **in this corpus only `ban_an` (1,139), `quyet_dinh` (698) and `null` (7) occur** — the adopted precedents themselves are flagged via `precedent_number`, not `doc_type`. |
139
- | `case_type` | string | `dan_su` \| `hinh_su` \| `hon_nhan_gia_dinh` \| `lao_dong` \| `kinh_doanh_thuong_mai` \| `hanh_chinh`. |
140
- | `doc_subtype` | string | `so_tham` \| `phuc_tham` \| `giam_doc_tham` \| `tai_tham` \| `an_le`. |
141
- | `year` | int32 | Year extracted from `doc_code`. |
142
- | `title` | string | Header line as captured. |
143
- | `subject` | string | `V/v ...` matter line. |
144
- | `issue_date` | string | ISO 8601 issue date when discoverable. |
145
- | `issuing_authority` | string | Full court name. |
146
- | `court_level` | string | `huyen` \| `tinh` \| `cap_cao` \| `toi_cao`. |
147
- | `jurisdiction` | string | **Deprecated — do not use for legal analysis; scheduled for removal in the next schema revision.** Locality token substring-parsed out of `issuing_authority` (the token after the most-specific `huyện`/`quận`/`thị xã`/`tỉnh`/`thành phố` marker in the court name). It records the court's *seat*, **not** its territorial jurisdiction (*thẩm quyền theo lãnh thổ*) — e.g. the High Court seated in Ho Chi Minh City hears appeals from the whole southern region. 100% re-derivable from `issuing_authority`; ~65% `null` (letterheads like `TÒA ÁN NHÂN DÂN CẤP CAO TẠI ĐÀ NẴNG` carry no marker); district values lack their province; OCR noise passes through verbatim. Prefer `issuing_authority` + `court_level`. |
148
-
149
- ### Body + stats
150
 
151
- | Field | Type | Description |
152
- |---|---|---|
153
- | `markdown` | string | NFC-normalised, modern-orthography Vietnamese markdown (page-segmented with `## Page N` headings). |
154
- | `num_pages` / `num_sections` / `num_paragraphs` / `num_sentences` | int32 | Counts from the structure layer. |
155
- | `char_len` | int32 | Character length of `markdown`. |
156
- | `text_hash` | string | SHA-256 first-32 hex of the extract-stage markdown; stable join key across `documents` / `sentences` / `embed` / `reduce`. Computed **before** the 2026-07 tone-mark repair (see *Limitations*), so it intentionally does not re-hash the shipped `markdown`. |
157
- | `parser_model` / `parsed_at` | string | Provenance for the parse stage. |
158
 
159
- ### Hierarchy + entities
160
 
161
- | Field | Type | Description |
162
- |---|---|---|
163
- | `structure_json` | string | Full `DocumentStructure` (meta + stats + sections + paragraphs + sentences) as JSON; round-trips via `json.loads`. |
164
- | `extracted_json` | string | Regex NER + statute-link output (entities, relations, statute_refs) as JSON. |
165
 
166
- ### Precedent layer (án-lệ-only)
 
 
 
167
 
168
- | Field | Type | Description |
169
- |---|---|---|
170
- | `precedent_number` | string | E.g. `Án lệ số 47/2021/AL`. None for plain judgments. |
171
- | `adopted_date` | string | ISO 8601 adoption date. |
172
- | `applied_article_code` / `applied_article_number` / `applied_article_clause` | string / int64 / int64 | Most-cited statute reference. |
173
- | `principle_text` | string | "Nội dung án lệ" / "Nguyên tắc" excerpt when present. |
174
 
175
  Quick load:
176
 
177
  ```python
178
- import json
179
  from datasets import load_dataset
180
 
181
- ds = load_dataset("tmquan/anle-toaan-gov-vn", split="train") # documents config
182
- row = ds[0]
183
- structure = json.loads(row["structure_json"])
184
- print(structure["meta"]["doc_code"])
185
- for sec in structure["sections"]:
186
- print(sec["kind"], sec["label"])
187
  ```
188
 
189
- ## Companion stages · `sentences` + `embed` + `reduce`
190
 
191
- 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.
192
 
193
- ### `sentences-*.parquet` — sentence-level rows
194
 
195
- 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.
196
 
197
  | Field | Type | Description |
198
  |---|---|---|
199
- | `doc_name` | string | Join key back to `documents-*.parquet`. |
200
- | `sentence_id` | string | Stable per-corpus sentence id (`<doc_id>::s<g>` form). |
201
- | `paragraph_id` / `section_id` | string | Parent paragraph / section ids. |
202
- | `case_type` / `doc_type` / `doc_subtype` / `court_level` / `year` / `precedent_number` | string / int32 | Parent-document filter columns (promoted so consumers can slice without joining). |
203
- | `section_kind` | string | `header` \| `case_summary` \| `findings` \| `decision` \| `footer`. |
204
- | `paragraph_kind` | string | `text` \| `numbered_finding` \| `numbered_decision` \| `list_item` \| `signature` \| ... |
205
- | `paragraph_marker` | string | The marker as it appears in the body (e.g. `[1]`, `1.`, `-`). |
206
- | `page` | int32 | Page number inside the parent PDF. |
207
- | `index_in_paragraph` / `global_index` | int32 | Position inside the parent paragraph / inside the document. |
208
- | `char_start` / `char_end` | int32 | Char span back into the parent `markdown`. |
209
- | `text` | string | The sentence itself, NFC-normalised. |
210
-
211
- Quick load:
212
 
213
  ```python
214
-
215
  from datasets import load_dataset
216
-
217
-
218
  sents = load_dataset("tmquan/anle-toaan-gov-vn", "sentences", split="train")
219
- print(sents[0]["text"])
220
- # Filter to all sentences from civil-law cassation precedents
221
- civil_cassation = sents.filter(
222
- lambda r: r["case_type"] == "dan_su" and r["doc_subtype"] == "giam_doc_tham"
223
- )
224
  ```
225
 
226
- ### `embed-*.parquet` — dense vectors
227
 
228
- One row per embeddable document (1,844 rows). The default embedder is `nvidia/Nemotron-3-Embed-8B-BF16` (4096-D). The full set of *predefined* models the pipeline can route to is published in `manifest.json["pipeline"]["embed"]["registry"]`:
229
-
230
- | Model | Dim | Native window | Notes |
231
- |---|---:|---:|---|
232
- | `nvidia/llama-nemotron-embed-1b-v2` | 2048 | 8192 | Default. 1B params, 8k context. |
233
- | `nvidia/llama-3.2-nv-embedqa-1b-v2` | 1024 | 512 | Previous ViLA default (retrieval, 512-tok window). |
234
- | `nvidia/llama-embed-nemotron-8b` | 4096 | 8192 | 8B params, higher quality. |
235
- | `nvidia/Nemotron-3-Embed-1B-BF16` | 2048 | 32768 | NVIDIA Nemotron-3 embedding, 1B params, mean pooling, 32k native (local HF). |
236
- | `nvidia/Nemotron-3-Embed-8B-BF16` | 4096 | 32768 | NVIDIA Nemotron-3 embedding, 8B params, mean pooling, 32k native (local HF). |
237
- | `sentence-transformers/paraphrase-multilingual-mpnet-base-v2` | 768 | 128 | Multilingual MPNet (50+ langs incl. VI). |
238
- | `microsoft/harrier-oss-v1-270m` | — | 32768 | 270 M params, 32k native context. |
239
- | `microsoft/harrier-oss-v1-0.6b` | — | 32768 | Lightweight HF default; 32k native. |
240
- | `microsoft/harrier-oss-v1-27b` | — | 32768 | Highest quality in the harrier-oss family. |
241
 
242
  | Field | Type | Description |
243
  |---|---|---|
244
- | `doc_name` | string | Join key back to `documents-*.parquet`. |
245
- | `text_hash` | string | SHA-256 of the post-normalisation markdown. |
246
- | `embedding` | list&lt;float32&gt; | **4096-D** dense vector. |
247
- | `embedding_dim` | int64 | Length of `embedding` (denormalised for fast filtering). |
248
- | `embedding_model_id` | string | Model slug as the backend reports it. |
249
- | `embedding_text_hash` | string | SHA-256 of the exact text fed to the embedder. |
250
- | `embedding_chunks_used` | int64 | Windows mean-pooled into the final vector (1 if the doc fits in one window). |
251
- | `embedding_chunking` | string | `off` / `sliding` / `sentence`. |
252
 
253
- ### `reduce-*.parquet` — 2D projections + cluster ids
254
 
255
- 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).
256
 
257
  | Field | Type | Description |
258
  |---|---|---|
259
- | `doc_name` / `text_hash` | string | Join keys back to `documents-*.parquet` and `embed-*.parquet`. |
260
- | `pca_x` | float64 | PCA projection (axis x). |
261
- | `pca_y` | float64 | PCA projection (axis y). |
262
- | `tsne_x` | float64 | TSNE projection (axis x). |
263
- | `tsne_y` | float64 | TSNE projection (axis y). |
264
- | `umap_x` | float64 | UMAP projection (axis x). |
265
- | `umap_y` | float64 | UMAP projection (axis y). |
266
- | `cluster_id` | int64 | HDBSCAN cluster label; `-1` is the noise bucket. |
267
-
268
- Join back to documents:
269
 
270
  ```python
271
-
272
  from datasets import load_dataset
273
-
274
  docs = load_dataset("tmquan/anle-toaan-gov-vn", "documents", split="train").to_pandas()
275
  embed = load_dataset("tmquan/anle-toaan-gov-vn", "embed", split="train").to_pandas()
276
  reduce = load_dataset("tmquan/anle-toaan-gov-vn", "reduce", split="train").to_pandas()
277
  joined = docs.merge(embed, on="doc_name").merge(reduce, on="doc_name")
278
  ```
279
 
280
- ## Trực quan hoá embedding · Embedding visualization
281
-
282
- Mỗi điểm là một văn bản; toạ độ là vector embedding 4096-D từ `nvidia/Nemotron-3-Embed-8B-BF16` 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 4096-D embedding from `nvidia/Nemotron-3-Embed-8B-BF16`, with HDBSCAN cluster ids. One figure per row.
283
 
284
- PCA t-SNE vẫn được tính sẵn 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.
285
 
286
- ### UMAP colored by `case_type`
287
 
288
- ![UMAP colored by `case_type`](./embedding-case-type-umap.png)
289
 
290
- ### UMAP colored by `doc_subtype`
291
 
292
- ![UMAP colored by `doc_subtype`](./embedding-doc-subtype-umap.png)
293
 
294
- ### UMAP colored by `court_level`
295
 
296
- ![UMAP colored by `court_level`](./embedding-court-level-umap.png)
 
297
 
298
- ### UMAP colored by `cluster_id`
 
299
 
300
- ![UMAP colored by `cluster_id`](./embedding-cluster-id-umap.png)
 
301
 
302
  ## Cách thu thập + chuẩn hoá · How the corpus was built
303
 
 
70
  | Chỉ số · Metric | Giá trị · Value |
71
  |---|---:|
72
  | Văn bản · Documents | **1,844** |
73
+ | Câu · Sentences | 169,698 |
74
+ | Trích dẫn luật · Law citations (sentence-grounded) | 29,783 |
75
+ | Trích dẫn bản án · Case citations | 4,238 |
76
+ | Án lệ chính thức · Official án lệ (`is_precedent`) | 9 |
77
+ | Có embedding · Embedding vectors (4096-d) | 1,844 |
78
+ | Có projection · Reduce projections (PCA/t-SNE/UMAP) | 1,844 |
79
  | Trung vị trang · Median pages / doc | 9 |
80
+ | Trung vị ký tự · Median chars / doc | 20,909 |
81
+ | Trung vị câu · Median sentences / doc | 79 |
 
82
 
83
  ## Phân loại · Document classes
84
 
85
+ > Column names and categorical values are **English** (for adoption + education); legal **content** — `court`, `law_name`, citation `ref` text, `code`, `markdown` — stays Vietnamese.
86
 
87
+ ### Lĩnh vực · `category`
 
 
 
 
 
 
88
 
89
  | Value | Count | Share |
90
  |---|---:|---:|
91
+ | `Civil` | 892 | 48.4% |
92
+ | `Criminal` | 459 | 24.9% |
93
+ | `Administrative` | 326 | 17.7% |
94
+ | `Commercial` | 105 | 5.7% |
95
+ | `Marriage & Family` | 47 | 2.5% |
96
+ | `Labor` | 8 | 0.4% |
97
+ | `null` | 7 | 0.4% |
98
 
99
+ ### Cấp xét xử · `instance_level`
100
 
101
  | Value | Count | Share |
102
  |---|---:|---:|
103
+ | `Appellate` | 1,014 | 55.0% |
104
+ | `Cassation` (giám đốc thẩm) | 680 | 36.9% |
105
+ | `First-instance` | 126 | 6.8% |
106
+ | `Retrial` (tái thẩm) | 17 | 0.9% |
107
+ | `null` | 7 | 0.4% |
108
 
109
+ ### Cấp toà · `court_level` — computed from the court name
110
 
111
  | Value | Count | Share |
112
  |---|---:|---:|
113
+ | `High` (cấp cao) | 1,685 | 91.4% |
114
+ | `Supreme` (tối cao) | 70 | 3.8% |
115
+ | `Provincial` (tỉnh) | 19 | 1.0% |
116
+ | `District` (huyện/quận) | 2 | 0.1% |
117
+ | `null` | 68 | 3.7% |
118
+
119
+ (High dominates because án lệ *sources* are overwhelmingly cấp-cao appellate/cassation rulings.)
120
 
121
  ## Lược đồ bảng `documents` · `documents` schema
122
 
123
+ One row per judgment; primary key **`doc_name`** (all configs join on it). 28 columns:
 
124
 
125
+ **Identity** `doc_name` (TAND portal id, PK) · `source` · `web_url` (portal page) · `pdf_url` (PDF binary).
126
 
127
+ **Official document id** `official_document_id` (printed, e.g. `237/2022/HS-PT`) · `official_document_id_normalized` (hyphenated, for joins/citation-graph) · `number` · `year` · `code` (VI ký hiệu) · `id_source` (`regex` \| `audit_corrected`).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
+ **Classification** `category` · `instance_level` · `court` (VI court name) · `court_level` (English tier) · `issued_date` (date) · `date_source`.
 
 
 
 
 
 
130
 
131
+ **Precedent** `precedent_number` (e.g. `44/2021/AL`, non-null on the 9 official án lệ) · `is_precedent` (bool).
132
 
133
+ **Citations** first-class `list<struct>`:
 
 
 
134
 
135
+ | Column | Struct fields |
136
+ |---|---|
137
+ | `citations_law` (29,783) | `kind` (`provision`\|`document`) · **`ref`** (VI, ordered large→small `Chương→Mục→Điều→Khoản→Điểm` + law + `năm`) · `chapter`,`section`,`article`,`clause`,`point` · `law_type`,`law_name` (VI) · `id`,`year` · **`sentence_id`** (grounding → `sentences`) · **`span`** (char offsets `[[start,end],…]` into `markdown`) |
138
+ | `citations_case` (4,238) | `id`,`number`,`year`,`code` · `role` (`first-instance`\|`appellate`\|`cassation`\|`protest`) · `domain`,`level` · `sentence_id`,`span` |
139
 
140
+ Plus `citations_source` (`llm` \| `llm+section` \| `regex`), `num_law_citations`, `num_case_citations`. **79% of law citations carry a `sentence_id` + `span`** (anchored on `Điều <article>`; the rest are normative-by-number ids not found verbatim).
141
+
142
+ **Content** `markdown` (full judgment) · `markdown_chars` · `num_pages` · `confidence` · `flags` (list).
 
 
 
143
 
144
  Quick load:
145
 
146
  ```python
 
147
  from datasets import load_dataset
148
 
149
+ docs = load_dataset("tmquan/anle-toaan-gov-vn", split="train") # documents config
150
+ r = docs[0]
151
+ print(r["official_document_id"], r["category"], r["instance_level"], r["court"])
152
+ for c in r["citations_law"][:5]:
153
+ print(c["ref"], "→", list(c["sentence_id"])) # citation + its grounding sentence(s)
 
154
  ```
155
 
156
+ ## Companion configs · `sentences` + `embed` + `reduce`
157
 
158
+ Three parquet bundles accompany `documents`; all join on the `doc_name` primary key, and `sentences` also links to citations via `sentence_id`.
159
 
160
+ ### `sentences-*.parquet` — sentence-level rows (169,698)
161
 
162
+ Sentence-split from the shipped `markdown` (conservative Vietnamese-legal splitter); `char_start`/`char_end` index the *same* `markdown`, so `citations_*.span` and `citations_*.sentence_id` line up exactly.
163
 
164
  | Field | Type | Description |
165
  |---|---|---|
166
+ | `sentence_id` | string | `{doc_name}#{sent_idx}` the grounding id referenced by `citations_*.sentence_id`. |
167
+ | `doc_name` | string | Join key back to `documents`. |
168
+ | `sent_idx` | int | Sentence index within the document. |
169
+ | `char_start` / `char_end` | int | Char span into the parent `documents.markdown`. |
170
+ | `text` | string | The sentence. |
171
+ | `category` / `instance_level` / `year` / `precedent_number` | string / int | Parent-document facets (promoted for slicing without a join). |
 
 
 
 
 
 
 
172
 
173
  ```python
 
174
  from datasets import load_dataset
 
 
175
  sents = load_dataset("tmquan/anle-toaan-gov-vn", "sentences", split="train")
176
+ # every sentence that grounds a citation of Điều 468
177
+ hits = sents.filter(lambda r: "Điều 468" in r["text"])
 
 
 
178
  ```
179
 
180
+ ### `embed-*.parquet` — dense vectors (1,844)
181
 
182
+ `nvidia/Nemotron-3-Embed-8B-BF16` (**4096-d**, "Nemotron-3" = v3), **`chunking=sentence`** (sentence-boundary sliding windows + mean-pool), run in-process on a GB10.
 
 
 
 
 
 
 
 
 
 
 
 
183
 
184
  | Field | Type | Description |
185
  |---|---|---|
186
+ | `doc_name` | string | Join key. |
187
+ | `embedding` | list&lt;float32&gt; | **4096-d** dense vector (L2-normalised). |
188
+ | `embedding_dim` | int | 4096. |
189
+ | `embedding_model_id` | string | `nvidia/Nemotron-3-Embed-8B-BF16`. |
 
 
 
 
190
 
191
+ ### `reduce-*.parquet` — 2D projections (1,844)
192
 
193
+ PCA + t-SNE + UMAP fit over the full embedding matrix with `n_components=2` (HDBSCAN clustering is off in this release).
194
 
195
  | Field | Type | Description |
196
  |---|---|---|
197
+ | `doc_name` | string | Join key. |
198
+ | `pca_x` / `pca_y` | float | PCA 2D projection. |
199
+ | `tsne_x` / `tsne_y` | float | t-SNE 2D projection. |
200
+ | `umap_x` / `umap_y` | float | UMAP 2D projection. |
 
 
 
 
 
 
201
 
202
  ```python
 
203
  from datasets import load_dataset
 
204
  docs = load_dataset("tmquan/anle-toaan-gov-vn", "documents", split="train").to_pandas()
205
  embed = load_dataset("tmquan/anle-toaan-gov-vn", "embed", split="train").to_pandas()
206
  reduce = load_dataset("tmquan/anle-toaan-gov-vn", "reduce", split="train").to_pandas()
207
  joined = docs.merge(embed, on="doc_name").merge(reduce, on="doc_name")
208
  ```
209
 
210
+ ## Trực quan hoá · Visualizations
 
 
211
 
212
+ ### đồ Sankey trích dẫn · Citation Sankeycategory · subcategory document cited provision
213
 
214
+ Mỗi luồng một trích dẫn pháp luật: bắt đầu từ *lĩnh vực · cấp xét xử* của bản án, đi qua *tài liệu* (toàn bộ 1.844 bản án), tới *điều khoản được viện dẫn* (`Điều → Khoản → Điểm`, kể cả `Chương/Mục`). Màu luồng theo lĩnh vực·cấp. — Each flow is one law-citation: from the judgment's *legal category · court level*, through the *document* (all 1,844 judgments), to the *cited provision* (`Điều → Khoản → Điểm`, incl. `Chương/Mục`). Links are coloured by category·subcategory.
215
 
216
+ ![Citation Sankey](./sankey-category-document-citation.png)
217
 
218
+ Bản tương tác (zoom/hover) · Interactive version: [`sankey-category-document-citation.html`](./sankey-category-document-citation.html)
219
 
220
+ ### Chiếu embedding 2D · 2D embedding projections
221
 
222
+ Mỗi điểm là một văn bản; toạ độ là vector embedding 4096-D từ `nvidia/Nemotron-3-Embed-8B-BF16` chiếu xuống 2D bằng **t-SNE** và **UMAP**. Toạ độ PCA/t-SNE/UMAP đều lưu trong `reduce-*.parquet`. — Each dot is one document; coordinates are the 2D **t-SNE** and **UMAP** projections of a 4096-D `nvidia/Nemotron-3-Embed-8B-BF16` embedding. PCA/t-SNE/UMAP coordinates all ship in `reduce-*.parquet`.
223
 
224
+ #### PCA — theo lĩnh vực · by legal category
225
+ ![PCA by category](./embedding-pca-category.png)
226
 
227
+ #### t-SNE theo lĩnh vực · by legal category
228
+ ![t-SNE by category](./embedding-tsne-category.png)
229
 
230
+ #### UMAP theo lĩnh vực · by legal category
231
+ ![UMAP by category](./embedding-umap-category.png)
232
 
233
  ## Cách thu thập + chuẩn hoá · How the corpus was built
234
 
documents-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:affc8e68fae9029efbc598dcf4f7841593045239043e07123d2debcba7ddaa9b
3
- size 39464679
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b67ce22069cc6a2209bd77f0fb9f088e23309565a34489926262f5c483796681
3
+ size 23428260
embed-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a532303e721e65d0c5b08d01af6b6d2f454f8dd4017c019b2c39744137ed1176
3
- size 25385928
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1ddcbc6d585ee8c87c33335ca8fcdb1d9133f2b245c5a30ba25926126b0d4ee
3
+ size 39902167
embedding-case-type-umap.png → embedding-pca-category.png RENAMED
File without changes
embedding-cluster-id-umap.png → embedding-tsne-category.png RENAMED
File without changes
embedding-court-level-umap.png → embedding-umap-category.png RENAMED
File without changes
reduce-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f356f805ad89bf0b1e00edcca112d248ac110c06dbee536801e39373bb8675e6
3
- size 105026
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42667f3f4e622bb4137ef5b68c756733acf03a6587f28bf26938b6c331f6fa74
3
+ size 97112
sankey-category-document-citation.html ADDED
The diff for this file is too large to render. See raw diff
 
embedding-doc-subtype-umap.png → sankey-category-document-citation.png RENAMED
File without changes
sentences-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ee966bdce6f75e1c0109aad39df5903066a830be4c6910b374a1cf2b1c8806a
3
+ size 25001943
sentences-00000-of-00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:47fe28426118eff6272a274cdca0768b3bb076fc7d795e7b7fd129baf371f1c3
3
- size 3658646
 
 
 
 
sentences-00001-of-00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8246a6917b8bac01f32cbbc519eab4fe010613efd209a4e90233e0ce212dfd29
3
- size 3757723
 
 
 
 
sentences-00002-of-00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:60f73de076fbd3ef65804b5f24a4136535ff87eb3aeb517b1cc753a42ba3835d
3
- size 3789042
 
 
 
 
sentences-00003-of-00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d34553399c57cd1614edadc49f39d5e45ca79591734bcf1420d4bcb2f2b3f2a
3
- size 3606035
 
 
 
 
sentences-00004-of-00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7db9e71320364d7d82973c8621957251f04c4584e928da268ca59284d23d7cb9
3
- size 3575366
 
 
 
 
sentences-00005-of-00006.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6a38a51512abc7a34741045f2555b6aaa129a7011701eab2302340cec40531ae
3
- size 712422