tsei902 commited on
Commit
9fb03b6
·
verified ·
1 Parent(s): cc1847d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +213 -1
README.md CHANGED
@@ -9,4 +9,216 @@ tags:
9
  - sentence_simplification
10
  - simplification
11
  - text2text
12
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  - sentence_simplification
10
  - simplification
11
  - text2text
12
+ ---
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+ This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
18
+
19
+ ## Model Details
20
+
21
+ # simplify_dutch
22
+
23
+ This is the source code for my thesis on "Controllable Sentence Simplification in Dutch"
24
+ in the Masters of AI at KU Leuven. The full code can be found at: https://github.com/tsei902/simplify_dutch
25
+
26
+ # Data
27
+ The origin of the datasets in resources/datasets is:
28
+ 1) Wikilarge, available under: https://github.com/XingxingZhang/dress
29
+ The wikilarge data is limited the first 10000 rows.
30
+
31
+ 2) ASSET, available under: https://github.com/facebookresearch
32
+ Which both have been translated to Dutch.
33
+
34
+ # Model
35
+ The Dutch T5 model t5-base-dutch from Hugging Face has been adopted and trained on the task
36
+ of sentence simplification.
37
+ The folder /saved model contains the final trained model on 10000 rows of data, as stated in the Thesis.
38
+
39
+ # Sequence:
40
+ 1) TRAINING DATA needs preprocessing with preprocessor.py
41
+ 2) Generation can be done with generate_on_pretrained.py with a prior adjustment of
42
+ 3) The generation parameters in model.simplify() where the decoding method needs to be chosen (Greedy decoding, Top-p & top-k, or Beam search)
43
+ 4) Manual scoring of a generated text is possible with evaluate.py
44
+
45
+ # Further remarks:
46
+ 1) The folder resources/processed data contains the training set with the prepended control tokens
47
+ 2) The folder resources/DUMPS contains the Word embeddings from Fares et al. (2017) have been used. The data is available under: http://vectors.nlpl.eu/repository. (Fares, M., Kutuzov, A., Oepen, S., & Velldal, E. (2017). Word vectors, reuse, and replicability: Towards a community repository of large-text resources. Proceedings of the 21st Nordic Conference on Computational Linguistics, Gothenburg, Sweden.)
48
+ 3) The folder resources/outputs/final_decoder_outputs contains the final generated text per decoding strategy (Greedy decoding, Top-p & top-k, or Beam search) for both the full test set and the sample dataset
49
+ 4) The folder translations contains sampled text (106 and 84 rows) from the original English datasets (WIKILarge and ASSET), a machine-translated version as well as the human translated references.
50
+
51
+ # Credits
52
+ The preprocessor.py and the utils.py contain code that has been adapted from https://github.com/KimChengSHEANG/TS_T5 (Sheang, K. C., & Saggion, H. (2021). Controllable Sentence Simplification with a Unified Text-to-Text Transfer Transformer.INLG 2021 International Conference on Natural Language Generation, Aberdeen, Scotland, UK.)
53
+ The preprocessor.py has been adapted to the usage of Dutch.
54
+
55
+
56
+ ### Model Description
57
+
58
+ <!-- Provide a longer summary of what this model is. -->
59
+
60
+
61
+
62
+ - **Developed by:** Theresa Seidl
63
+ - **Funded by [optional]:** [More Information Needed]
64
+ - **Shared by [optional]:** [More Information Needed]
65
+ - **Model type:** [More Information Needed]
66
+ - **Language(s) (NLP):** Dutsch
67
+ - **License:** [More Information Needed]
68
+ - **Finetuned from model [optional]:** https://huggingface.co/yhavinga/t5-base-dutch
69
+
70
+ ### Model Sources [optional]
71
+
72
+ <!-- Provide the basic links for the model. -->
73
+
74
+ - **Repository:** https://github.com/tsei902/simplify_dutch
75
+ - **Paper [optional]:** [More Information Needed]
76
+ - **Demo [optional]:** [More Information Needed]
77
+
78
+ ## Uses
79
+
80
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
81
+
82
+ ### Direct Use
83
+
84
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
85
+
86
+ [More Information Needed]
87
+
88
+ ### Downstream Use [optional]
89
+
90
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
91
+
92
+ [More Information Needed]
93
+
94
+ ### Out-of-Scope Use
95
+
96
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
97
+
98
+ [More Information Needed]
99
+
100
+ ## Bias, Risks, and Limitations
101
+
102
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
103
+
104
+ [More Information Needed]
105
+
106
+ ### Recommendations
107
+
108
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
109
+
110
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
111
+
112
+ ## How to Get Started with the Model
113
+
114
+ Use the code below to get started with the model.
115
+
116
+ [More Information Needed]
117
+
118
+ ## Training Details
119
+
120
+ ### Training Data
121
+
122
+ <!-- This should link to a Dataset 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. -->
123
+
124
+ [More Information Needed]
125
+
126
+ ### Training Procedure
127
+
128
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
129
+
130
+ #### Preprocessing [optional]
131
+
132
+ [More Information Needed]
133
+
134
+
135
+ #### Training Hyperparameters
136
+
137
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
138
+
139
+ #### Speeds, Sizes, Times [optional]
140
+
141
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
142
+
143
+ [More Information Needed]
144
+
145
+ ## Evaluation
146
+
147
+ <!-- This section describes the evaluation protocols and provides the results. -->
148
+
149
+ ### Testing Data, Factors & Metrics
150
+
151
+ #### Testing Data
152
+
153
+ <!-- This should link to a Dataset Card if possible. -->
154
+
155
+ [More Information Needed]
156
+
157
+ #### Factors
158
+
159
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
160
+
161
+ [More Information Needed]
162
+
163
+ #### Metrics
164
+
165
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
166
+
167
+ [More Information Needed]
168
+
169
+ ### Results
170
+
171
+ [More Information Needed]
172
+
173
+ #### Summary
174
+
175
+
176
+
177
+ ## Model Examination [optional]
178
+
179
+ <!-- Relevant interpretability work for the model goes here -->
180
+
181
+ [More Information Needed]
182
+
183
+ ## Environmental Impact
184
+
185
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
186
+
187
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
188
+
189
+ - **Hardware Type:** [More Information Needed]
190
+ - **Hours used:** [More Information Needed]
191
+ - **Cloud Provider:** [More Information Needed]
192
+ - **Compute Region:** [More Information Needed]
193
+ - **Carbon Emitted:** [More Information Needed]
194
+
195
+ ## Technical Specifications [optional]
196
+
197
+ ### Model Architecture and Objective
198
+
199
+ [More Information Needed]
200
+
201
+ ### Compute Infrastructure
202
+
203
+ [More Information Needed]
204
+
205
+ #### Hardware
206
+
207
+ [More Information Needed]
208
+
209
+ #### Software
210
+
211
+ [More Information Needed]
212
+
213
+ ## Citation [optional]
214
+
215
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
216
+
217
+ **BibTeX:**
218
+
219
+ [More Information Needed]
220
+
221
+ **APA:**
222
+
223
+ [More Information Needed]
224
+