Lakoc commited on
Commit
1865892
·
verified ·
1 Parent(s): 15ec934

Upload tokenizer

Browse files
Files changed (4) hide show
  1. README.md +199 -0
  2. special_tokens_map.json +8 -0
  3. tokenizer.json +317 -0
  4. tokenizer_config.json +61 -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,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "([bos])",
3
+ "eos_token": "([eos])",
4
+ "mask_token": "([mask])",
5
+ "pad_token": "([pad])",
6
+ "sep_token": " ",
7
+ "unk_token": "([unk])"
8
+ }
tokenizer.json ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "([bos])",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 1,
17
+ "content": "([eos])",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 2,
26
+ "content": "([unk])",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 3,
35
+ "content": "([pad])",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ {
43
+ "id": 4,
44
+ "content": "([mask])",
45
+ "single_word": false,
46
+ "lstrip": false,
47
+ "rstrip": false,
48
+ "normalized": false,
49
+ "special": true
50
+ },
51
+ {
52
+ "id": 100,
53
+ "content": " ",
54
+ "single_word": false,
55
+ "lstrip": false,
56
+ "rstrip": false,
57
+ "normalized": false,
58
+ "special": true
59
+ }
60
+ ],
61
+ "normalizer": null,
62
+ "pre_tokenizer": {
63
+ "type": "ByteLevel",
64
+ "add_prefix_space": false,
65
+ "trim_offsets": true,
66
+ "use_regex": true
67
+ },
68
+ "post_processor": {
69
+ "type": "TemplateProcessing",
70
+ "single": [
71
+ {
72
+ "Sequence": {
73
+ "id": "A",
74
+ "type_id": 0
75
+ }
76
+ },
77
+ {
78
+ "SpecialToken": {
79
+ "id": "([eos])",
80
+ "type_id": 0
81
+ }
82
+ }
83
+ ],
84
+ "pair": [
85
+ {
86
+ "Sequence": {
87
+ "id": "A",
88
+ "type_id": 0
89
+ }
90
+ },
91
+ {
92
+ "SpecialToken": {
93
+ "id": "([eos])",
94
+ "type_id": 0
95
+ }
96
+ },
97
+ {
98
+ "Sequence": {
99
+ "id": "B",
100
+ "type_id": 1
101
+ }
102
+ },
103
+ {
104
+ "SpecialToken": {
105
+ "id": "([eos])",
106
+ "type_id": 1
107
+ }
108
+ }
109
+ ],
110
+ "special_tokens": {
111
+ "([bos])": {
112
+ "id": "([bos])",
113
+ "ids": [
114
+ 0
115
+ ],
116
+ "tokens": [
117
+ "([bos])"
118
+ ]
119
+ },
120
+ "([eos])": {
121
+ "id": "([eos])",
122
+ "ids": [
123
+ 1
124
+ ],
125
+ "tokens": [
126
+ "([eos])"
127
+ ]
128
+ }
129
+ }
130
+ },
131
+ "decoder": {
132
+ "type": "ByteLevel",
133
+ "add_prefix_space": true,
134
+ "trim_offsets": true,
135
+ "use_regex": true
136
+ },
137
+ "model": {
138
+ "type": "BPE",
139
+ "dropout": null,
140
+ "unk_token": null,
141
+ "continuing_subword_prefix": null,
142
+ "end_of_word_suffix": null,
143
+ "fuse_unk": false,
144
+ "byte_fallback": false,
145
+ "vocab": {
146
+ "([bos])": 0,
147
+ "([eos])": 1,
148
+ "([unk])": 2,
149
+ "([pad])": 3,
150
+ "([mask])": 4,
151
+ "'": 5,
152
+ "a": 6,
153
+ "b": 7,
154
+ "c": 8,
155
+ "d": 9,
156
+ "e": 10,
157
+ "f": 11,
158
+ "g": 12,
159
+ "h": 13,
160
+ "i": 14,
161
+ "j": 15,
162
+ "k": 16,
163
+ "l": 17,
164
+ "m": 18,
165
+ "n": 19,
166
+ "o": 20,
167
+ "p": 21,
168
+ "q": 22,
169
+ "r": 23,
170
+ "s": 24,
171
+ "t": 25,
172
+ "u": 26,
173
+ "v": 27,
174
+ "w": 28,
175
+ "x": 29,
176
+ "y": 30,
177
+ "z": 31,
178
+ "Ġ": 32,
179
+ "Ġt": 33,
180
+ "he": 34,
181
+ "Ġa": 35,
182
+ "in": 36,
183
+ "Ġthe": 37,
184
+ "Ġs": 38,
185
+ "Ġw": 39,
186
+ "Ġo": 40,
187
+ "re": 41,
188
+ "nd": 42,
189
+ "Ġh": 43,
190
+ "Ġb": 44,
191
+ "er": 45,
192
+ "Ġm": 46,
193
+ "ou": 47,
194
+ "Ġi": 48,
195
+ "Ġc": 49,
196
+ "Ġf": 50,
197
+ "at": 51,
198
+ "ed": 52,
199
+ "en": 53,
200
+ "on": 54,
201
+ "Ġof": 55,
202
+ "Ġto": 56,
203
+ "Ġand": 57,
204
+ "is": 58,
205
+ "ing": 59,
206
+ "Ġd": 60,
207
+ "Ġp": 61,
208
+ "Ġth": 62,
209
+ "or": 63,
210
+ "Ġhe": 64,
211
+ "es": 65,
212
+ "it": 66,
213
+ "Ġl": 67,
214
+ "as": 68,
215
+ "ar": 69,
216
+ "ll": 70,
217
+ "an": 71,
218
+ "Ġin": 72,
219
+ "Ġn": 73,
220
+ "Ġg": 74,
221
+ "om": 75,
222
+ "Ġbe": 76,
223
+ "Ġha": 77,
224
+ "le": 78,
225
+ "Ġe": 79,
226
+ "ot": 80,
227
+ "ut": 81,
228
+ "ow": 82,
229
+ "ic": 83,
230
+ "Ġy": 84,
231
+ "ld": 85,
232
+ "ve": 86,
233
+ "ly": 87,
234
+ "Ġit": 88,
235
+ "Ġwh": 89,
236
+ "Ġwas": 90,
237
+ "se": 91,
238
+ "Ġthat": 92,
239
+ "id": 93,
240
+ "st": 94,
241
+ "gh": 95,
242
+ "Ġon": 96,
243
+ "ent": 97,
244
+ "Ġre": 98,
245
+ "im": 99
246
+ },
247
+ "merges": [
248
+ "Ġ t",
249
+ "h e",
250
+ "Ġ a",
251
+ "i n",
252
+ "Ġt he",
253
+ "Ġ s",
254
+ "Ġ w",
255
+ "Ġ o",
256
+ "r e",
257
+ "n d",
258
+ "Ġ h",
259
+ "Ġ b",
260
+ "e r",
261
+ "Ġ m",
262
+ "o u",
263
+ "Ġ i",
264
+ "Ġ c",
265
+ "Ġ f",
266
+ "a t",
267
+ "e d",
268
+ "e n",
269
+ "o n",
270
+ "Ġo f",
271
+ "Ġt o",
272
+ "Ġa nd",
273
+ "i s",
274
+ "in g",
275
+ "Ġ d",
276
+ "Ġ p",
277
+ "Ġt h",
278
+ "o r",
279
+ "Ġ he",
280
+ "e s",
281
+ "i t",
282
+ "Ġ l",
283
+ "a s",
284
+ "a r",
285
+ "l l",
286
+ "a n",
287
+ "Ġ in",
288
+ "Ġ n",
289
+ "Ġ g",
290
+ "o m",
291
+ "Ġb e",
292
+ "Ġh a",
293
+ "l e",
294
+ "Ġ e",
295
+ "o t",
296
+ "u t",
297
+ "o w",
298
+ "i c",
299
+ "Ġ y",
300
+ "l d",
301
+ "v e",
302
+ "l y",
303
+ "Ġi t",
304
+ "Ġw h",
305
+ "Ġw as",
306
+ "s e",
307
+ "Ġth at",
308
+ "i d",
309
+ "s t",
310
+ "g h",
311
+ "Ġo n",
312
+ "en t",
313
+ "Ġ re",
314
+ "i m"
315
+ ]
316
+ }
317
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "([bos])",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "([eos])",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "([unk])",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "([pad])",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "([mask])",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "100": {
44
+ "content": " ",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "bos_token": "([bos])",
53
+ "clean_up_tokenization_spaces": true,
54
+ "eos_token": "([eos])",
55
+ "mask_token": "([mask])",
56
+ "model_max_length": 1000000000000000019884624838656,
57
+ "pad_token": "([pad])",
58
+ "sep_token": " ",
59
+ "tokenizer_class": "PreTrainedTokenizerFast",
60
+ "unk_token": "([unk])"
61
+ }