Datasets:

Modalities:
Text
Formats:
parquet
Languages:
Japanese
Tags:
legal
Libraries:
Datasets
Dask
License:
File size: 2,139 Bytes
e3ed3fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935c601
 
 
8d1442a
 
e3ed3fe
935c601
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
08e57e3
935c601
 
 
 
 
8d1442a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
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.