Austin Davis
commited on
Commit
·
fe82303
1
Parent(s):
b44f60f
Upload tokenizer
Browse files- special_tokens_map.json +6 -0
- tokenizer.json +214 -0
- tokenizer_config.json +16 -0
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"pad_token": "<pad>",
|
5 |
+
"unk_token": "<pad>"
|
6 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "1.0",
|
3 |
+
"truncation": null,
|
4 |
+
"padding": null,
|
5 |
+
"added_tokens": [
|
6 |
+
{
|
7 |
+
"id": 0,
|
8 |
+
"content": "<pad>",
|
9 |
+
"single_word": false,
|
10 |
+
"lstrip": false,
|
11 |
+
"rstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"special": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"id": 1,
|
17 |
+
"content": "<s>",
|
18 |
+
"single_word": false,
|
19 |
+
"lstrip": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"normalized": false,
|
22 |
+
"special": true
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"id": 77,
|
26 |
+
"content": "<|endoftext|>",
|
27 |
+
"single_word": false,
|
28 |
+
"lstrip": false,
|
29 |
+
"rstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"special": true
|
32 |
+
}
|
33 |
+
],
|
34 |
+
"normalizer": {
|
35 |
+
"type": "Strip",
|
36 |
+
"strip_left": true,
|
37 |
+
"strip_right": true
|
38 |
+
},
|
39 |
+
"pre_tokenizer": {
|
40 |
+
"type": "Sequence",
|
41 |
+
"pretokenizers": [
|
42 |
+
{
|
43 |
+
"type": "Whitespace"
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"type": "Split",
|
47 |
+
"pattern": {
|
48 |
+
"Regex": "([PQRKNB]|[a-h][1-8]|[bnqkr]|\" \")"
|
49 |
+
},
|
50 |
+
"behavior": "Isolated",
|
51 |
+
"invert": false
|
52 |
+
}
|
53 |
+
]
|
54 |
+
},
|
55 |
+
"post_processor": {
|
56 |
+
"type": "TemplateProcessing",
|
57 |
+
"single": [
|
58 |
+
{
|
59 |
+
"SpecialToken": {
|
60 |
+
"id": "<s>",
|
61 |
+
"type_id": 0
|
62 |
+
}
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"Sequence": {
|
66 |
+
"id": "A",
|
67 |
+
"type_id": 0
|
68 |
+
}
|
69 |
+
}
|
70 |
+
],
|
71 |
+
"pair": [
|
72 |
+
{
|
73 |
+
"SpecialToken": {
|
74 |
+
"id": "<s>",
|
75 |
+
"type_id": 0
|
76 |
+
}
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"Sequence": {
|
80 |
+
"id": "A",
|
81 |
+
"type_id": 0
|
82 |
+
}
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"SpecialToken": {
|
86 |
+
"id": "<pad>",
|
87 |
+
"type_id": 0
|
88 |
+
}
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"Sequence": {
|
92 |
+
"id": "B",
|
93 |
+
"type_id": 1
|
94 |
+
}
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"SpecialToken": {
|
98 |
+
"id": "<pad>",
|
99 |
+
"type_id": 1
|
100 |
+
}
|
101 |
+
}
|
102 |
+
],
|
103 |
+
"special_tokens": {
|
104 |
+
"<pad>": {
|
105 |
+
"id": "<pad>",
|
106 |
+
"ids": [
|
107 |
+
0
|
108 |
+
],
|
109 |
+
"tokens": [
|
110 |
+
"<pad>"
|
111 |
+
]
|
112 |
+
},
|
113 |
+
"<s>": {
|
114 |
+
"id": "<s>",
|
115 |
+
"ids": [
|
116 |
+
1
|
117 |
+
],
|
118 |
+
"tokens": [
|
119 |
+
"<s>"
|
120 |
+
]
|
121 |
+
}
|
122 |
+
}
|
123 |
+
},
|
124 |
+
"decoder": {
|
125 |
+
"type": "Replace",
|
126 |
+
"pattern": {
|
127 |
+
"String": "<pad>"
|
128 |
+
},
|
129 |
+
"content": ""
|
130 |
+
},
|
131 |
+
"model": {
|
132 |
+
"type": "WordLevel",
|
133 |
+
"vocab": {
|
134 |
+
"<pad>": 0,
|
135 |
+
"<s>": 1,
|
136 |
+
"</s>": 2,
|
137 |
+
"P": 3,
|
138 |
+
"N": 4,
|
139 |
+
"R": 5,
|
140 |
+
"B": 6,
|
141 |
+
"Q": 7,
|
142 |
+
"K": 8,
|
143 |
+
"c2": 9,
|
144 |
+
"c4": 10,
|
145 |
+
"e7": 11,
|
146 |
+
"e5": 12,
|
147 |
+
"g2": 13,
|
148 |
+
"g3": 14,
|
149 |
+
"b8": 15,
|
150 |
+
"c6": 16,
|
151 |
+
"f1": 17,
|
152 |
+
"g8": 18,
|
153 |
+
"f6": 19,
|
154 |
+
"b1": 20,
|
155 |
+
"c3": 21,
|
156 |
+
"f8": 22,
|
157 |
+
"b4": 23,
|
158 |
+
"d5": 24,
|
159 |
+
"e8": 25,
|
160 |
+
"e2": 26,
|
161 |
+
"e3": 27,
|
162 |
+
"e4": 28,
|
163 |
+
"a2": 29,
|
164 |
+
"a3": 30,
|
165 |
+
"d6": 31,
|
166 |
+
"d8": 32,
|
167 |
+
"a1": 33,
|
168 |
+
"e6": 34,
|
169 |
+
"b2": 35,
|
170 |
+
"b3": 36,
|
171 |
+
"c7": 37,
|
172 |
+
"d2": 38,
|
173 |
+
"d3": 39,
|
174 |
+
"f7": 40,
|
175 |
+
"f5": 41,
|
176 |
+
"a7": 42,
|
177 |
+
"a5": 43,
|
178 |
+
"g1": 44,
|
179 |
+
"d4": 45,
|
180 |
+
"g4": 46,
|
181 |
+
"c5": 47,
|
182 |
+
"e1": 48,
|
183 |
+
"d7": 49,
|
184 |
+
"d1": 50,
|
185 |
+
"h8": 51,
|
186 |
+
"c1": 52,
|
187 |
+
"a4": 53,
|
188 |
+
"h2": 54,
|
189 |
+
"h3": 55,
|
190 |
+
"a8": 56,
|
191 |
+
"f4": 57,
|
192 |
+
"g7": 58,
|
193 |
+
"g5": 59,
|
194 |
+
"b6": 60,
|
195 |
+
"b7": 61,
|
196 |
+
"c8": 62,
|
197 |
+
"h7": 63,
|
198 |
+
"h4": 64,
|
199 |
+
"f3": 65,
|
200 |
+
"h5": 66,
|
201 |
+
"h1": 67,
|
202 |
+
"f2": 68,
|
203 |
+
"h6": 69,
|
204 |
+
"g6": 70,
|
205 |
+
"b5": 71,
|
206 |
+
"a6": 72,
|
207 |
+
"q": 73,
|
208 |
+
"r": 74,
|
209 |
+
"b": 75,
|
210 |
+
"n": 76
|
211 |
+
},
|
212 |
+
"unk_token": "<pad>"
|
213 |
+
}
|
214 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"bos_token": "<s>",
|
4 |
+
"clean_up_tokenization_spaces": true,
|
5 |
+
"max_length": 512,
|
6 |
+
"model_max_length": 1000000000000000019884624838656,
|
7 |
+
"pad_to_multiple_of": null,
|
8 |
+
"pad_token": "<pad>",
|
9 |
+
"pad_token_type_id": 0,
|
10 |
+
"padding_side": "right",
|
11 |
+
"stride": 0,
|
12 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
13 |
+
"truncation_side": "right",
|
14 |
+
"truncation_strategy": "longest_first",
|
15 |
+
"unk_token": "<pad>"
|
16 |
+
}
|