BrainboxAI commited on
Commit
3e3d801
·
verified ·
1 Parent(s): 8208c8f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +116 -3
README.md CHANGED
@@ -1,3 +1,116 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - he
4
+ - en
5
+ license: cc-by-4.0
6
+ tags:
7
+ - legal
8
+ - hebrew
9
+ - israel
10
+ - law
11
+ - court-rulings
12
+ - contracts
13
+ - fine-tuning
14
+ - instruction-tuning
15
+ task_categories:
16
+ - text-generation
17
+ - question-answering
18
+ size_categories:
19
+ - 10K<n<100K
20
+ ---
21
+
22
+ # BrainboxAI/legal-training-il
23
+
24
+ ### Hebrew & English Legal Training Dataset
25
+
26
+ 17,613 instruction-tuning samples for training legal AI models on Israeli law.
27
+
28
+ ## Dataset Composition
29
+
30
+ | Source | Samples | Language | Content |
31
+ |--------|---------|----------|---------|
32
+ | Israeli Court Rulings (HF) | 3,978 | Hebrew | Supreme Court, Family, Criminal, Civil |
33
+ | Israeli Court Rulings (existing) | 3,982 | Hebrew | Various courts and tribunals |
34
+ | Kol-Zchut (כל-זכות) | 2,353 | Hebrew | Citizens' rights explanations |
35
+ | Open Law Book (ספר החוקים הפתוח) | 300 | Hebrew | Israeli legislation via Wikisource |
36
+ | Contract Clauses (CUAD-based) | 7,000 | English | 41 contract types, 28 clause categories |
37
+ | **Total** | **17,613** | **60% Hebrew** | |
38
+
39
+ ## Format
40
+
41
+ Alpaca instruction format (JSONL):
42
+
43
+ ```json
44
+ {
45
+ "instruction": "מה הזכויות שלי בנושא פיצויי פיטורים?",
46
+ "input": "",
47
+ "output": "לפי חוק פיצויי פיטורים, תשכ\"ה-1967..."
48
+ }
49
+ ```
50
+
51
+ ## Sources
52
+
53
+ ### Hebrew Legal Data
54
+
55
+ - **Israeli Court Rulings** - [guychuk/case-law-israel](https://huggingface.co/datasets/guychuk/case-law-israel) - 10,558 judgments from Israeli courts
56
+ - **Kol-Zchut** - [kolzchut.org.il](https://www.kolzchut.org.il/) - Israeli citizens' rights knowledge base, 2,353 articles covering labor law, housing, health, insurance, disability, pensions, and more
57
+ - **Open Law Book** - [openlaw.org.il](https://www.openlaw.org.il/) - 5,969 consolidated Israeli laws via Hebrew Wikisource, a joint project of the Public Knowledge Workshop and Wikimedia Israel
58
+
59
+ ### English Legal Data
60
+
61
+ - **Contract Clauses** - Based on [CUAD](https://www.atticusprojectai.org/cuad/) methodology, covering 41 contract types across 28 clause categories including License Grant, Liability Cap, Audit Rights, Anti-Assignment, Termination, Change of Control, and more
62
+
63
+ ## Instruction Types
64
+
65
+ | Type | Example | Source |
66
+ |------|---------|--------|
67
+ | Court ruling analysis | "נתח את פסק הדין הבא..." | Court rulings |
68
+ | Rights Q&A | "מה הזכויות שלי בנושא...?" | Kol-Zchut |
69
+ | Law explanation | "הסבר את החוק הבא בצורה מובנת..." | Open Law Book |
70
+ | Contract clause analysis | "What are the key legal implications of this clause?" | CUAD contracts |
71
+
72
+ ## Usage
73
+
74
+ ```python
75
+ from datasets import load_dataset
76
+
77
+ dataset = load_dataset("BrainboxAI/legal-training-il", split="train")
78
+ print(f"Samples: {len(dataset)}")
79
+ ```
80
+
81
+ ### Fine-tuning with Unsloth
82
+
83
+ ```python
84
+ from unsloth import FastLanguageModel
85
+ from datasets import load_dataset
86
+
87
+ model, tokenizer = FastLanguageModel.from_pretrained(
88
+ model_name="unsloth/gemma-4-E2B-it",
89
+ max_seq_length=2048,
90
+ load_in_4bit=True,
91
+ )
92
+
93
+ dataset = load_dataset("BrainboxAI/legal-training-il", split="train")
94
+ ```
95
+
96
+ ## Trained Model
97
+
98
+ This dataset was used to train [BrainboxAI/law-il-E2B](https://huggingface.co/BrainboxAI/law-il-E2B) - a Hebrew legal AI model based on Gemma 4 E2B.
99
+
100
+ ## Limitations
101
+
102
+ - Court ruling outputs are currently summaries, not full legal analysis
103
+ - Contract clause data is in English with template-based analysis
104
+ - No case law citations or cross-references between sources
105
+ - Kol-Zchut content reflects rights information, not legal rulings
106
+
107
+ ## License
108
+
109
+ CC-BY-4.0. Individual sources may have additional terms:
110
+ - Kol-Zchut: CC-BY-SA
111
+ - Open Law Book: Public domain (Wikisource)
112
+ - Court rulings: Israeli government public data
113
+
114
+ ---
115
+
116
+ Built by [BrainboxAI](https://brainboxai.io)