codebyzeb commited on
Commit
ef33633
·
verified ·
1 Parent(s): 26a2adc

Upload tokenizer

Browse files
Files changed (5) hide show
  1. README.md +199 -0
  2. special_tokens_map.json +6 -0
  3. tokenizer.json +369 -0
  4. tokenizer_config.json +44 -0
  5. vocab.json +1 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- 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. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ 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).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "UTT_BOUNDARY",
3
+ "eos_token": "UTT_BOUNDARY",
4
+ "pad_token": "PAD",
5
+ "unk_token": "UNK"
6
+ }
tokenizer.json ADDED
@@ -0,0 +1,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "UNK",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 1,
17
+ "content": "PAD",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 2,
26
+ "content": "W",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 3,
35
+ "content": "UTT_BOUNDARY",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ }
42
+ ],
43
+ "normalizer": {
44
+ "type": "Sequence",
45
+ "normalizers": [
46
+ {
47
+ "type": "NFD"
48
+ },
49
+ {
50
+ "type": "Lowercase"
51
+ },
52
+ {
53
+ "type": "Strip",
54
+ "strip_left": true,
55
+ "strip_right": true
56
+ },
57
+ {
58
+ "type": "StripAccents"
59
+ },
60
+ {
61
+ "type": "Replace",
62
+ "pattern": {
63
+ "String": " "
64
+ },
65
+ "content": "W"
66
+ }
67
+ ]
68
+ },
69
+ "pre_tokenizer": {
70
+ "type": "Split",
71
+ "pattern": {
72
+ "String": ""
73
+ },
74
+ "behavior": "Isolated",
75
+ "invert": false
76
+ },
77
+ "post_processor": {
78
+ "type": "TemplateProcessing",
79
+ "single": [
80
+ {
81
+ "SpecialToken": {
82
+ "id": "UTT_BOUNDARY",
83
+ "type_id": 0
84
+ }
85
+ },
86
+ {
87
+ "Sequence": {
88
+ "id": "A",
89
+ "type_id": 0
90
+ }
91
+ }
92
+ ],
93
+ "pair": [
94
+ {
95
+ "SpecialToken": {
96
+ "id": "UTT_BOUNDARY",
97
+ "type_id": 0
98
+ }
99
+ },
100
+ {
101
+ "Sequence": {
102
+ "id": "A",
103
+ "type_id": 0
104
+ }
105
+ },
106
+ {
107
+ "SpecialToken": {
108
+ "id": "UTT_BOUNDARY",
109
+ "type_id": 0
110
+ }
111
+ },
112
+ {
113
+ "Sequence": {
114
+ "id": "B",
115
+ "type_id": 1
116
+ }
117
+ }
118
+ ],
119
+ "special_tokens": {
120
+ "UTT_BOUNDARY": {
121
+ "id": "UTT_BOUNDARY",
122
+ "ids": [
123
+ 3
124
+ ],
125
+ "tokens": [
126
+ "UTT_BOUNDARY"
127
+ ]
128
+ }
129
+ }
130
+ },
131
+ "decoder": null,
132
+ "model": {
133
+ "type": "WordLevel",
134
+ "vocab": {
135
+ "UNK": 0,
136
+ "PAD": 1,
137
+ "W": 2,
138
+ "UTT_BOUNDARY": 3,
139
+ "d": 4,
140
+ "o": 5,
141
+ "y": 6,
142
+ "u": 7,
143
+ "w": 8,
144
+ "a": 9,
145
+ "n": 10,
146
+ "t": 11,
147
+ "l": 12,
148
+ "k": 13,
149
+ "h": 14,
150
+ "i": 15,
151
+ "s": 16,
152
+ "?": 17,
153
+ "e": 18,
154
+ ".": 19,
155
+ "r": 20,
156
+ "'": 21,
157
+ "f": 22,
158
+ "c": 23,
159
+ "g": 24,
160
+ "p": 25,
161
+ "b": 26,
162
+ "m": 27,
163
+ "v": 28,
164
+ "j": 29,
165
+ "!": 30,
166
+ "x": 31,
167
+ "q": 32,
168
+ "z": 33,
169
+ "-": 34,
170
+ "&": 35,
171
+ ",": 36,
172
+ "/": 37,
173
+ "1": 38,
174
+ "9": 39,
175
+ "5": 40,
176
+ "0": 41,
177
+ ";": 42,
178
+ "‘": 43,
179
+ "’": 44,
180
+ "—": 45,
181
+ ":": 46,
182
+ "+": 47,
183
+ "8": 48,
184
+ "3": 49,
185
+ "7": 50,
186
+ "4": 51,
187
+ "6": 52,
188
+ "2": 53,
189
+ "=": 54,
190
+ ")": 55,
191
+ "(": 56,
192
+ "_": 57,
193
+ "*": 58,
194
+ "£": 59,
195
+ "–": 60,
196
+ "#": 61,
197
+ "`": 62,
198
+ "\"": 63,
199
+ "æ": 64,
200
+ "]": 65,
201
+ "|": 66,
202
+ "$": 67,
203
+ "“": 68,
204
+ "”": 69,
205
+ "[": 70,
206
+ "œ": 71,
207
+ "{": 72,
208
+ "}": 73,
209
+ "…": 74,
210
+ "°": 75,
211
+ "§": 76,
212
+ ">": 77,
213
+ "·": 78,
214
+ "¢": 79,
215
+ "%": 80,
216
+ "^": 81,
217
+ "½": 82,
218
+ "¶": 83,
219
+ "×": 84,
220
+ "¼": 85,
221
+ "¾": 86,
222
+ "φ": 87,
223
+ "<": 88,
224
+ "´": 89,
225
+ "¯": 90,
226
+ "¦": 91,
227
+ "†": 92,
228
+ "«": 93,
229
+ "¬": 94,
230
+ "©": 95,
231
+ "“": 96,
232
+ "●": 97,
233
+ "¹": 98,
234
+ "⁄": 99,
235
+ "²": 100,
236
+ "₂": 101,
237
+ "│": 102,
238
+ "δ": 103,
239
+ "α": 104,
240
+ "ο": 105,
241
+ "υ": 106,
242
+ "χ": 107,
243
+ "ι": 108,
244
+ "η": 109,
245
+ "μ": 110,
246
+ "ε": 111,
247
+ "γ": 112,
248
+ "λ": 113,
249
+ "β": 114,
250
+ "κ": 115,
251
+ "ω": 116,
252
+ "ν": 117,
253
+ "ρ": 118,
254
+ "σ": 119,
255
+ "ς": 120,
256
+ "τ": 121,
257
+ "θ": 122,
258
+ "π": 123,
259
+ "′": 124,
260
+ "³": 125,
261
+ "⸺": 126,
262
+ "―": 127,
263
+ "±": 128,
264
+ "~": 129,
265
+ "ß": 130,
266
+ "µ": 131,
267
+ "„": 132,
268
+ "@": 133,
269
+ "\\": 134,
270
+ "♪": 135,
271
+ "¿": 136,
272
+ "¡": 137,
273
+ "​": 138,
274
+ "─": 139,
275
+ "–": 140,
276
+ "ð": 141,
277
+ "­": 142,
278
+ "º": 143,
279
+ "¸": 144,
280
+ "þ": 145,
281
+ "и": 146,
282
+ "♫": 147,
283
+ "¤": 148,
284
+ "¨": 149,
285
+ "ø": 150,
286
+ "": 151,
287
+ "ª": 152,
288
+ "đ": 153,
289
+ "€": 154,
290
+ "™": 155,
291
+ "€": 156,
292
+ "fl": 157,
293
+ "♬": 158,
294
+ "’": 159,
295
+ ",": 160,
296
+ "": 161,
297
+ "™": 162,
298
+ "®": 163,
299
+ "ı": 164,
300
+ "с": 165,
301
+ "в": 166,
302
+ "‎": 167,
303
+ "ц": 168,
304
+ "ь": 169,
305
+ "д": 170,
306
+ "н": 171,
307
+ "е": 172,
308
+ "м": 173,
309
+ "о": 174,
310
+ "т": 175,
311
+ "г": 176,
312
+ "а": 177,
313
+ "р": 178,
314
+ "ч": 179,
315
+ "п": 180,
316
+ "я": 181,
317
+ "б": 182,
318
+ "•": 183,
319
+ "ł": 184,
320
+ "ร": 185,
321
+ "ก": 186,
322
+ "к": 187,
323
+ "у": 188,
324
+ "‚": 189,
325
+ "ˆ": 190,
326
+ "„": 191,
327
+ "ƒ": 192,
328
+ "‡": 193,
329
+ "Š": 194,
330
+ "‘": 195,
331
+ "大": 196,
332
+ "”": 197,
333
+ "ا": 198,
334
+ "л": 199,
335
+ "з": 200,
336
+ "‑": 201,
337
+ "ʻ": 202,
338
+ "ت": 203,
339
+ "ו": 204,
340
+ "י": 205,
341
+ "ر": 206,
342
+ "ي": 207,
343
+ "ل": 208,
344
+ "ه": 209,
345
+ "ع": 210,
346
+ "ن": 211,
347
+ "ə": 212,
348
+ "−": 213,
349
+ "→": 214,
350
+ "ы": 215,
351
+ "ː": 216,
352
+ "و": 217,
353
+ "م": 218,
354
+ "س": 219,
355
+ "ح": 220,
356
+ "د": 221,
357
+ "ب": 222,
358
+ "ی": 223,
359
+ "»": 224,
360
+ "น": 225,
361
+ "า": 226,
362
+ "ง": 227,
363
+ "ม": 228,
364
+ "ʼ": 229,
365
+ "ˈ": 230
366
+ },
367
+ "unk_token": "UNK"
368
+ }
369
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "UNK",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "PAD",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "W",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "UTT_BOUNDARY",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ }
36
+ },
37
+ "bos_token": "UTT_BOUNDARY",
38
+ "clean_up_tokenization_spaces": true,
39
+ "eos_token": "UTT_BOUNDARY",
40
+ "model_max_length": 1000000000000000019884624838656,
41
+ "pad_token": "PAD",
42
+ "tokenizer_class": "GPT2Tokenizer",
43
+ "unk_token": "UNK"
44
+ }
vocab.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"UNK":0,"PAD":1,"W":2,"UTT_BOUNDARY":3,"d":4,"o":5,"y":6,"u":7,"w":8,"a":9,"n":10,"t":11,"l":12,"k":13,"h":14,"i":15,"s":16,"?":17,"e":18,".":19,"r":20,"'":21,"f":22,"c":23,"g":24,"p":25,"b":26,"m":27,"v":28,"j":29,"!":30,"x":31,"q":32,"z":33,"-":34,"&":35,",":36,"/":37,"1":38,"9":39,"5":40,"0":41,";":42,"‘":43,"’":44,"—":45,":":46,"+":47,"8":48,"3":49,"7":50,"4":51,"6":52,"2":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,"¶":83,"×":84,"¼":85,"¾":86,"φ":87,"<":88,"´":89,"¯":90,"¦":91,"†":92,"«":93,"¬":94,"©":95,"“":96,"●":97,"¹":98,"⁄":99,"²":100,"₂":101,"│":102,"δ":103,"α":104,"ο":105,"υ":106,"χ":107,"ι":108,"η":109,"μ":110,"ε":111,"γ":112,"λ":113,"β":114,"κ":115,"ω":116,"ν":117,"ρ":118,"σ":119,"ς":120,"τ":121,"θ":122,"π":123,"′":124,"³":125,"⸺":126,"―":127,"±":128,"~":129,"ß":130,"µ":131,"„":132,"@":133,"\\":134,"♪":135,"¿":136,"¡":137,"​":138,"─":139,"–":140,"ð":141,"­":142,"º":143,"¸":144,"þ":145,"и":146,"♫":147,"¤":148,"¨":149,"ø":150,"":151,"ª":152,"đ":153,"€":154,"™":155,"€":156,"fl":157,"♬":158,"’":159,",":160,"":161,"™":162,"®":163,"ı":164,"с":165,"в":166,"‎":167,"ц":168,"ь":169,"д":170,"н":171,"е":172,"м":173,"о":174,"т":175,"г":176,"а":177,"р":178,"ч":179,"п":180,"я":181,"б":182,"•":183,"ł":184,"ร":185,"ก":186,"к":187,"у":188,"‚":189,"ˆ":190,"„":191,"ƒ":192,"‡":193,"Š":194,"‘":195,"大":196,"”":197,"ا":198,"л":199,"з":200,"‑":201,"ʻ":202,"ت":203,"ו":204,"י":205,"ر":206,"ي":207,"ل":208,"ه":209,"ع":210,"ن":211,"ə":212,"−":213,"→":214,"ы":215,"ː":216,"و":217,"م":218,"س":219,"ح":220,"د":221,"ب":222,"ی":223,"»":224,"น":225,"า":226,"ง":227,"ม":228,"ʼ":229,"ˈ":230}