tmquan commited on
Commit
2143546
·
verified ·
1 Parent(s): da4ec9b

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

Browse files
README.md CHANGED
@@ -411,8 +411,7 @@ bucket).
411
  |---|---|---|
412
  | `doc_name` / `text_hash` | string | Join keys back to `documents-*.parquet` and `embed-*.parquet`. |
413
  | `pca_x` / `pca_y` | float64 | 2-D PCA projection of the 2048-D embedding. |
414
- | `tsne_x` / `tsne_y` | float64 | 2-D t-SNE projection. |
415
- | `umap_x` / `umap_y` | float64 | 2-D UMAP projection (the one used in the scatter PNGs above). |
416
  | `cluster_id` | int64 | HDBSCAN cluster label; `-1` is the noise / unclustered bucket. |
417
 
418
  Quick load (each stage is a `data_files` glob; the default
@@ -456,7 +455,7 @@ joined = docs.merge(embed, on="doc_name", how="inner")
456
 
457
  ## Trực quan hoá embedding · Embedding visualization
458
 
459
- 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.
460
 
461
  ### UMAP colored by `scope`
462
 
@@ -530,7 +529,7 @@ embedding parquets for the NULL-markdown rows are dropped from
530
  the embedding corpus entirely so the reducer fits on the
531
  embeddable rows only (147,317-row corpus).
532
 
533
- Captured: `2026-05-21T17:50:24.822753+00:00`.
534
 
535
  ## Nguồn · Source
536
 
 
411
  |---|---|---|
412
  | `doc_name` / `text_hash` | string | Join keys back to `documents-*.parquet` and `embed-*.parquet`. |
413
  | `pca_x` / `pca_y` | float64 | 2-D PCA projection of the 2048-D embedding. |
414
+ | `umap_x` / `umap_y` | float64 | 2-D UMAP projection (the one used in the scatter PNGs above). Fit globally across all rows for cross-doc comparability. |
 
415
  | `cluster_id` | int64 | HDBSCAN cluster label; `-1` is the noise / unclustered bucket. |
416
 
417
  Quick load (each stage is a `data_files` glob; the default
 
455
 
456
  ## Trực quan hoá embedding · Embedding visualization
457
 
458
+ 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.
459
 
460
  ### UMAP colored by `scope`
461
 
 
529
  the embedding corpus entirely so the reducer fits on the
530
  embeddable rows only (147,317-row corpus).
531
 
532
+ Captured: `2026-05-22T14:33:10.016717+00:00`.
533
 
534
  ## Nguồn · Source
535
 
embedding-doc-type-umap.png CHANGED

Git LFS Details

  • SHA256: e7f95a97bb8535ee54ab529d26aa3582df7dca9f79d9ad74ee042890d8a46308
  • Pointer size: 132 Bytes
  • Size of remote file: 4.42 MB

Git LFS Details

  • SHA256: 77e9c3f017d319f91c24b1b909eb7026ded4ee6b612f08c351a40203ad751dc9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.97 MB
embedding-legal-area-umap.png CHANGED

Git LFS Details

  • SHA256: 48fd30fd10935ce2f2a8b17a82af68cbf545eccd6edb2ea8eebccb60bd9ee0ad
  • Pointer size: 132 Bytes
  • Size of remote file: 4.32 MB

Git LFS Details

  • SHA256: 3a6b757a0d74d1dc495be245aebd05d43c4c121192aaca64a2af24fcc8629085
  • Pointer size: 132 Bytes
  • Size of remote file: 2.06 MB
embedding-legal-type-umap.png CHANGED

Git LFS Details

  • SHA256: 016beb7c7237313458f1f9aa347f19ef12c2df6aac7b2a585ccb87348f5e24ff
  • Pointer size: 131 Bytes
  • Size of remote file: 431 kB

Git LFS Details

  • SHA256: 5a835d0609029a4b079df1b26dd9eb1443bd76c697ead3f7daaac42c50fd0814
  • Pointer size: 132 Bytes
  • Size of remote file: 1.98 MB
embedding-scope-umap.png CHANGED

Git LFS Details

  • SHA256: 029f5226b382bc16994db2a801fd9da0b9509d9b66c995192912e753d90321c1
  • Pointer size: 132 Bytes
  • Size of remote file: 4.23 MB

Git LFS Details

  • SHA256: 3ee2c8acd2252a8d3646247dce16e446655f5523538802f0ad80fdfc46cf6f87
  • Pointer size: 132 Bytes
  • Size of remote file: 1.82 MB
embedding-year-umap.png CHANGED

Git LFS Details

  • SHA256: f72e46b7c1050caf7ce334c8793059ed614710597a29d34bd6dbc6f272696936
  • Pointer size: 131 Bytes
  • Size of remote file: 399 kB

Git LFS Details

  • SHA256: 36b2804a78d60fed08eb9924b9a8945bdc00366a72b55877b6920bf0c81e327f
  • Pointer size: 132 Bytes
  • Size of remote file: 2.09 MB
manifest.json CHANGED
@@ -536,5 +536,5 @@
536
  "share": 0.07243958645527698
537
  }
538
  },
539
- "completed_at": "2026-05-21T17:50:24.822753+00:00"
540
  }
 
536
  "share": 0.07243958645527698
537
  }
538
  },
539
+ "completed_at": "2026-05-22T14:33:10.016717+00:00"
540
  }