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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Model Card for t5-small-spoken-typo
|
2 |
+
|
3 |
+
<!-- Provide a quick summary of what the model is/does. [Optional] -->
|
4 |
+
This is a finetuned t5-small model using Spoken corpora (DailyDialog and BNC). We have done a number of things to the data though
|
5 |
+
- Only used sentences of 2-5 words long
|
6 |
+
- Removed apostrophes, commas etc
|
7 |
+
- Added in typos across the data set
|
8 |
+
- And most importantly - removed spaces
|
9 |
+
|
10 |
+
## Task
|
11 |
+
The primary task of this model is **Text Correction**, specifically designed for:
|
12 |
+
|
13 |
+
- **Sentence Correction**: Correcting sentences with missing spaces or typographical errors to enhance readability and understanding. This task is crucial for applications like assistive technology tools, text preprocessing in NLP pipelines, and improving user-generated content.
|
14 |
+
|
15 |
+
- **Text Normalization**: Converting informal or irregular text forms into a more standard, grammatically correct format. This includes expanding contractions (e.g., turning "whatsup" into "what's up"), fixing common misspellings, and ensuring consistent use of language.
|
16 |
+
|
17 |
+
This model is particularly suited for processing user-generated content where informal language, abbreviations, and typos are common. It aims to improve the clarity and quality of text inputs, making them more accessible for subsequent NLP tasks or human readers.
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
# Table of Contents
|
24 |
+
|
25 |
+
- [Model Card for t5-small-spoken-typo](#model-card-for--model_id-)
|
26 |
+
- [Table of Contents](#table-of-contents)
|
27 |
+
- [Table of Contents](#table-of-contents-1)
|
28 |
+
- [Model Details](#model-details)
|
29 |
+
- [Model Description](#model-description)
|
30 |
+
- [Uses](#uses)
|
31 |
+
- [Direct Use](#direct-use)
|
32 |
+
- [Downstream Use [Optional]](#downstream-use-optional)
|
33 |
+
- [Out-of-Scope Use](#out-of-scope-use)
|
34 |
+
- [Bias, Risks, and Limitations](#bias-risks-and-limitations)
|
35 |
+
- [Recommendations](#recommendations)
|
36 |
+
- [Training Details](#training-details)
|
37 |
+
- [Training Data](#training-data)
|
38 |
+
- [Training Procedure](#training-procedure)
|
39 |
+
- [Preprocessing](#preprocessing)
|
40 |
+
- [Speeds, Sizes, Times](#speeds-sizes-times)
|
41 |
+
- [Evaluation](#evaluation)
|
42 |
+
- [Testing Data, Factors & Metrics](#testing-data-factors--metrics)
|
43 |
+
- [Testing Data](#testing-data)
|
44 |
+
- [Factors](#factors)
|
45 |
+
- [Metrics](#metrics)
|
46 |
+
- [Results](#results)
|
47 |
+
- [Model Examination](#model-examination)
|
48 |
+
- [Environmental Impact](#environmental-impact)
|
49 |
+
- [Technical Specifications [optional]](#technical-specifications-optional)
|
50 |
+
- [Model Architecture and Objective](#model-architecture-and-objective)
|
51 |
+
- [Compute Infrastructure](#compute-infrastructure)
|
52 |
+
- [Hardware](#hardware)
|
53 |
+
- [Software](#software)
|
54 |
+
- [Citation](#citation)
|
55 |
+
- [Glossary [optional]](#glossary-optional)
|
56 |
+
- [More Information [optional]](#more-information-optional)
|
57 |
+
- [Model Card Authors [optional]](#model-card-authors-optional)
|
58 |
+
- [Model Card Contact](#model-card-contact)
|
59 |
+
- [How to Get Started with the Model](#how-to-get-started-with-the-model)
|
60 |
+
|
61 |
+
|
62 |
+
# Model Details
|
63 |
+
|
64 |
+
## Model Description
|
65 |
+
|
66 |
+
<!-- Provide a longer summary of what this model is/does. -->
|
67 |
+
This is a finetuned t5-small model using Spoken corpora (DailyDialog and BNC). We have done a number of things to the data though
|
68 |
+
- Only used sentences of 2-5 words long
|
69 |
+
- Removed apostrophes, commas etc
|
70 |
+
- Added in typos across the data set
|
71 |
+
- And most importantly - removed spaces
|
72 |
+
|
73 |
+
## Task
|
74 |
+
The primary task of this model is **Text Correction**, specifically designed for:
|
75 |
+
|
76 |
+
- **Sentence Correction**: Correcting sentences with missing spaces or typographical errors to enhance readability and understanding. This task is crucial for applications like assistive technology tools, text preprocessing in NLP pipelines, and improving user-generated content.
|
77 |
+
|
78 |
+
- **Text Normalization**: Converting informal or irregular text forms into a more standard, grammatically correct format. This includes expanding contractions (e.g., turning "whatsup" into "what's up"), fixing common misspellings, and ensuring consistent use of language.
|
79 |
+
|
80 |
+
This model is particularly suited for processing user-generated content where informal language, abbreviations, and typos are common. It aims to improve the clarity and quality of text inputs, making them more accessible for subsequent NLP tasks or human readers.
|
81 |
+
|
82 |
+
|
83 |
+
- **Developed by:** More information needed
|
84 |
+
- **Shared by [Optional]:** More information needed
|
85 |
+
- **Model type:** Language model
|
86 |
+
- **Language(s) (NLP):** en
|
87 |
+
- **License:** apache-2.0
|
88 |
+
- **Parent Model:** More information needed
|
89 |
+
- **Resources for more information:** More information needed
|
90 |
+
- [GitHub Repo](https://github.com/willwade/dailyDialogCorrections/)
|
91 |
+
|
92 |
+
|
93 |
+
# Uses
|
94 |
+
|
95 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
96 |
+
|
97 |
+
## Direct Use
|
98 |
+
|
99 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
100 |
+
<!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." -->
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
## Downstream Use [Optional]
|
106 |
+
|
107 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
108 |
+
<!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." -->
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
+
## Out-of-Scope Use
|
114 |
+
|
115 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
116 |
+
<!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." -->
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
|
121 |
+
# Bias, Risks, and Limitations
|
122 |
+
|
123 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
124 |
+
|
125 |
+
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
|
126 |
+
|
127 |
+
|
128 |
+
## Recommendations
|
129 |
+
|
130 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
131 |
+
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
# Training Details
|
137 |
+
|
138 |
+
## Training Data
|
139 |
+
|
140 |
+
<!-- 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. -->
|
141 |
+
|
142 |
+
More information on training data needed
|
143 |
+
|
144 |
+
|
145 |
+
## Training Procedure
|
146 |
+
|
147 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
148 |
+
|
149 |
+
### Preprocessing
|
150 |
+
|
151 |
+
More information needed
|
152 |
+
|
153 |
+
### Speeds, Sizes, Times
|
154 |
+
|
155 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
156 |
+
|
157 |
+
More information needed
|
158 |
+
|
159 |
+
# Evaluation
|
160 |
+
|
161 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
162 |
+
|
163 |
+
## Testing Data, Factors & Metrics
|
164 |
+
|
165 |
+
### Testing Data
|
166 |
+
|
167 |
+
<!-- This should link to a Data Card if possible. -->
|
168 |
+
|
169 |
+
More information needed
|
170 |
+
|
171 |
+
|
172 |
+
### Factors
|
173 |
+
|
174 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
175 |
+
|
176 |
+
More information needed
|
177 |
+
|
178 |
+
### Metrics
|
179 |
+
|
180 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
181 |
+
|
182 |
+
More information needed
|
183 |
+
|
184 |
+
## Results
|
185 |
+
|
186 |
+
More information needed
|
187 |
+
|
188 |
+
# Model Examination
|
189 |
+
|
190 |
+
More information needed
|
191 |
+
|
192 |
+
# Environmental Impact
|
193 |
+
|
194 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
195 |
+
|
196 |
+
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).
|
197 |
+
|
198 |
+
- **Hardware Type:** More information needed
|
199 |
+
- **Hours used:** More information needed
|
200 |
+
- **Cloud Provider:** More information needed
|
201 |
+
- **Compute Region:** More information needed
|
202 |
+
- **Carbon Emitted:** 0.41
|
203 |
+
|
204 |
+
# Technical Specifications [optional]
|
205 |
+
|
206 |
+
## Model Architecture and Objective
|
207 |
+
|
208 |
+
More information needed
|
209 |
+
|
210 |
+
## Compute Infrastructure
|
211 |
+
|
212 |
+
More information needed
|
213 |
+
|
214 |
+
### Hardware
|
215 |
+
|
216 |
+
More information needed
|
217 |
+
|
218 |
+
### Software
|
219 |
+
|
220 |
+
More information needed
|
221 |
+
|
222 |
+
# Citation
|
223 |
+
|
224 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
225 |
+
|
226 |
+
**BibTeX:**
|
227 |
+
|
228 |
+
More information needed
|
229 |
+
|
230 |
+
**APA:**
|
231 |
+
|
232 |
+
More information needed
|
233 |
+
|
234 |
+
# Glossary [optional]
|
235 |
+
|
236 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
237 |
+
|
238 |
+
More information needed
|
239 |
+
|
240 |
+
# More Information [optional]
|
241 |
+
|
242 |
+
More information needed
|
243 |
+
|
244 |
+
# Model Card Authors [optional]
|
245 |
+
|
246 |
+
<!-- This section provides another layer of transparency and accountability. Whose views is this model card representing? How many voices were included in its construction? Etc. -->
|
247 |
+
|
248 |
+
Will Wade
|
249 |
+
|
250 |
+
# Model Card Contact
|
251 |
+
|
252 |
+
More information needed
|
253 |
+
|
254 |
+
# How to Get Started with the Model
|
255 |
+
|
256 |
+
Use the code below to get started with the model.
|
257 |
+
|
258 |
+
<details>
|
259 |
+
<summary> Click to expand </summary>
|
260 |
+
|
261 |
+
More information needed
|
262 |
+
|
263 |
+
</details>
|