Datasets:

Modalities:
Text
Formats:
parquet
Languages:
Japanese
Tags:
legal
Libraries:
Datasets
Dask
License:
e_gov / README.md
Eiki's picture
Update README.md
08e57e3 verified
---
dataset_info:
features:
- name: text
dtype: string
- name: metadata
struct:
- name: Era
dtype: string
- name: Lang
dtype: string
- name: LawType
dtype: string
- name: Num
dtype: int64
- name: Year
dtype: int64
- name: PromulgateMonth
dtype: int64
- name: PromulgateDay
dtype: int64
- name: LawNum
dtype: string
- name: category_id
dtype: int64
splits:
- name: train
num_bytes: 1273777352
num_examples: 9075
- name: validation
num_bytes: 133887591
num_examples: 1135
- name: test
num_bytes: 152845900
num_examples: 1137
download_size: 432536600
dataset_size: 1560510843
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
license: cc-by-4.0
language:
- ja
tags:
- legal
---
# Abstract
This is the Japapnese law dataset obtained from [e-Gov](https://www.e-gov.go.jp) (Date of download: Oct. 20th, 2024)
# Data Format
Each data is consist of 2 fields, "text" and "metadata".
* "text" fields contains the legal texts, which are expected to be mainly used.
* "metadata" fields contains additional information including 9 subfields below:
* "Era": The Japanese Era when the law is promulgated such as "Showa".
* "Lang": The language the text is written in. All of them are Japanese.
* "LawType": The type of the law including types below.
* "Constitution"
* "Act"
* "CabinetOrder"
* "ImperialOrder"
* "MinisterialOrdinance"
* "Rule"
* "Misc"
* "Year": The year when the law is promulgated.
* "PromulgateMonth/Day": The Month/Day when the law is promulgated.
* "LawNum": The string of the (numeric) name of the law.
* "category_id": The integer representing the category where the law is categorized. The categories is found in [category.json](category.json)
# Data Split
This dataset has 3 split, train, validation and test.
The data is split randomly but preserving the original distribution of the categories.
The ratio is 8:1:1.