danielsteinigen commited on
Commit
d8809cb
1 Parent(s): ac775f9

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +163 -0
README.md ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ datasets:
4
+ - danielsteinigen/KeyFiTax
5
+ language:
6
+ - de
7
+ library_name: transformers
8
+ tags:
9
+ - legal
10
+ - tax law
11
+ - relation extraction
12
+ - entity extraction
13
+ ---
14
+
15
+ # Model Card for Model ID
16
+
17
+ <!-- Provide a quick summary of what the model is/does. -->
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+ - **Developed by:** [More Information Needed]
27
+ - **Model type:** [More Information Needed]
28
+ - **Language(s) (NLP):** [More Information Needed]
29
+ - **License:** [More Information Needed]
30
+ - **Finetuned from model [optional]:** [More Information Needed]
31
+
32
+ ### Model Sources [optional]
33
+
34
+ <!-- Provide the basic links for the model. -->
35
+
36
+ - **Repository:** https://github.com/danielsteinigen/nlp-legal-texts
37
+ - **Paper:** [More Information Needed]
38
+ - **Demo:** https://huggingface.co/spaces/danielsteinigen/NLP-Legal-Texts
39
+
40
+ ## Uses
41
+ ```
42
+ from transformers import AutoTokenizer, AutoModelForTokenClassification
43
+ from transformers import pipeline
44
+
45
+ tokenizer = AutoTokenizer.from_pretrained("danielsteinigen/KeyFiTax")
46
+ model = AutoModelForTokenClassification.from_pretrained("danielsteinigen/KeyFiTax")
47
+
48
+ nlp = pipeline("ner", model=model, tokenizer=tokenizer)
49
+ key_figures = "[GRP-01]EStG § 66 Höhe des Kindergeldes, Zahlungszeitraum (1) Das Kindergeld beträgt monatlich für das erste und zweite Kind jeweils 219 Euro, für das dritte Kind 225 Euro und für das vierte und jedes weitere Kind jeweils 250 Euro."
50
+ conditions = "[GRP-00]EStG § 66 Höhe des Kindergeldes, Zahlungszeitraum (1) Das Kindergeld beträgt monatlich für das erste und zweite Kind jeweils 219 Euro, für das dritte Kind 225 Euro und für das vierte und jedes weitere Kind jeweils 250 Euro."
51
+ relations = "[REL]EStG § 66 Höhe des Kindergeldes, Zahlungszeitraum (1) Das Kindergeld beträgt monatlich für das erste und zweite Kind jeweils 219 Euro, für das dritte Kind 225 Euro und für das vierte und jedes weitere Kind jeweils 250 Euro."
52
+
53
+ results_key_figures = nlp(key_figures)
54
+ results_conditions = nlp(conditions)
55
+ results_relations = nlp(relations)
56
+ print(results_key_figures)
57
+ print(results_conditions)
58
+ print(results_relations)
59
+
60
+
61
+ ```
62
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
63
+
64
+ ### Direct Use
65
+
66
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
67
+
68
+ [More Information Needed]
69
+
70
+ ### Downstream Use [optional]
71
+
72
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
73
+
74
+ [More Information Needed]
75
+
76
+ ### Out-of-Scope Use
77
+
78
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
79
+
80
+ [More Information Needed]
81
+
82
+ ## Bias, Risks, and Limitations
83
+
84
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
85
+
86
+ [More Information Needed]
87
+
88
+ ### Recommendations
89
+
90
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
91
+
92
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
93
+
94
+ ## How to Get Started with the Model
95
+
96
+ Use the code below to get started with the model.
97
+
98
+ [More Information Needed]
99
+
100
+ ## Training Details
101
+
102
+ ### Training Data
103
+
104
+ <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
105
+
106
+ [More Information Needed]
107
+
108
+ ### Training Procedure
109
+
110
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
111
+
112
+
113
+ #### Training Hyperparameters
114
+
115
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
116
+
117
+
118
+ ## Evaluation
119
+
120
+ <!-- This section describes the evaluation protocols and provides the results. -->
121
+
122
+ ### Testing Data, Factors & Metrics
123
+
124
+ #### Testing Data
125
+
126
+ <!-- This should link to a Data Card if possible. -->
127
+
128
+ [More Information Needed]
129
+
130
+ #### Factors
131
+
132
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
133
+
134
+ [More Information Needed]
135
+
136
+ #### Metrics
137
+
138
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
139
+
140
+ [More Information Needed]
141
+
142
+ ### Results
143
+
144
+ [More Information Needed]
145
+
146
+ #### Summary
147
+
148
+
149
+ ## Citation [optional]
150
+
151
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
152
+
153
+ **BibTeX:**
154
+
155
+ [More Information Needed]
156
+
157
+ **APA:**
158
+
159
+ [More Information Needed]
160
+
161
+ ## Model Card Contact
162
+
163
+ [More Information Needed]