You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

Dataset Card for tw-processed-related-law-article

本資料集將中華民國(臺灣)現行法規以「條」為單位重新切分,並把每一條與其引用之相關條文一起合併呈現,方便用於法律語料的持續預訓練(continued pretraining)與條文檢索/問答(retrieval / QA)任務。

Dataset Details

Dataset Description

資料來自中華民國公開法規與條文內容,經過下列處理:

  1. 將每部法規依條文(flno)切分為獨立樣本。
  2. 從條文內文中解析出「相關法條」,將被引用之條文內容串接於原條文後,形成可獨立閱讀的訓練樣本。
  3. 標註每條的母法名稱(name)與法規代碼(pcode)。

最終樣本以「法規名稱:xxx 第 N 條 + 條文 + 相關法條」格式呈現,每一筆都是封閉的條文上下文,能直接做為語言模型訓練的輸入。

  • Curated by: Huang Liang Hsun
  • Language(s) (NLP): Traditional Chinese
  • License: cc-by-nc-sa-4.0

Dataset Sources

Uses

Direct Use

  • 訓練/持續預訓練面向中華民國法規的繁體中文語言模型。
  • 作為法律 RAG(檢索增強生成)系統的條文知識來源。
  • 衍生下游條文摘要、條文相關性判斷、法律問答資料集(如 tw-law-context-summary、tw-law-article-qa-DPO 等)。

Out-of-Scope Use

  • 不適用於提供具法律效力之諮詢;條文內容會隨修法變動,使用前請務必檢視最新法規。
  • 不適用於非中華民國法律之語境。
  • 不適用於替代專業律師、法務人員之判斷。

Dataset Structure

{
  "text": "法規名稱:\n中華民國專屬經濟海域及大陸礁層法第 9 條\n在中華民國專屬經濟海域或大陸礁層從事海洋科學研究...\n相關法條:中華民國專屬經濟海域及大陸礁層法\n(民國 112 年 12 月 27 日 )第 22 條\n未經許可...",
  "word_count": 545,
  "token_count": 0,
  "name": "中華民國專屬經濟海域及大陸礁層法",
  "pcode": "A0000010",
  "flno": "9"
}

欄位說明:

  • text:條文本文 + 引用之相關條文。
  • word_count:字元數(不含空白)。
  • token_count:tokenizer 切分後的 token 數,預留欄位(部分樣本為 0)。
  • name:母法名稱。
  • pcode:母法之法規代碼(沿用原始公開資料來源之編碼)。
  • flno:條號。

Dataset Creation

Curation Rationale

法規條文之間經常互相引用,若僅以單條條文為單位訓練模型,模型很難學到條文之間的依存關係。本資料集的設計動機是把每一條的「上下文(context)」一次補齊,讓模型在閱讀某條時,同時看到它引用之條文,更容易學會法規的結構性知識。

Source Data

Data Collection and Processing

  1. 自公開法規資料庫下載法規 XML/JSON。
  2. 解析每部法規的條文清單,並對每一條的內容做正則/規則式的「相關法條」抽取。
  3. 將被引用條文之全文串接到母條文後,形成可獨立閱讀的條文上下文。
  4. 統計字元數,補齊 metadata 欄位。

Who are the source data producers?

原始法規由中華民國各主管機關依法發布,並彙整於公開法規資料庫。

Annotations

Annotation process

無人工標註;所有 metadata 由規則式程式自動產生。

Who are the annotators?

無標註者。

Personal and Sensitive Information

本資料集為公開法規條文,不含個人識別資料。

Bias, Risks, and Limitations

  • 法規會隨修法異動,本資料集為某時點之快照,請勿用於現行法律建議。
  • 「相關法條」的抽取係以規則式進行,可能漏抓非顯式引用、或過度抓到表面相似條文。
  • 中華民國法律屬大陸法系,與其他法系的條文結構不同,模型在跨法系任務上不見得能直接遷移。

Recommendations

建議搭配最新版本的公開法規資料庫進行 re-crawl/更新;下游應用如為實務法律輔助,務必加上「非法律意見」的免責聲明。

Citation

@misc{tw_processed_related_law_article,
  title        = {tw-processed-related-law-article: Taiwan Statutes with Cross-referenced Articles},
  author       = {Huang, Liang Hsun},
  year         = {2024},
  howpublished = {\url{https://huggingface.co/datasets/lianghsun/tw-processed-related-law-article}}
}

Dataset Card Authors

Huang Liang Hsun

Dataset Card Contact

Huang Liang Hsun

Downloads last month
5