ardauzunoglu commited on
Commit
f9fb8ba
·
verified ·
1 Parent(s): 6594cbf

Upload string operations tokenizer

Browse files
length_distribution.png ADDED
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "<pad>",
5
+ "unk_token": "<unk>"
6
+ }
token_mapping.txt ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Token ID
2
+ <pad> 0
3
+ <s> 1
4
+ </s> 2
5
+ <unk> 3
6
+ a 4
7
+ b 5
8
+ c 6
9
+ d 7
10
+ e 8
11
+ f 9
12
+ g 10
13
+ h 11
14
+ i 12
15
+ j 13
16
+ k 14
17
+ l 15
18
+ OP_IDENTITY 16
19
+ OP_REVERSE 17
20
+ OP_ROTATE_LEFT_1 18
21
+ OP_ROTATE_RIGHT_1 19
22
+ OP_ROTATE_LEFT_2 20
23
+ OP_ROTATE_RIGHT_2 21
24
+ OP_SWAP_HALVES 22
25
+ OP_REVERSE_FIRST_HALF 23
26
+ OP_REVERSE_SECOND_HALF 24
27
+ OP_REVERSE_EACH_2BLOCK 25
28
+ OP_REVERSE_EACH_4BLOCK 26
29
+ OP_INTERLEAVE_HALVES 27
30
+ EQUALS 28
31
+ END 29
tokenizer.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 2,
26
+ "content": "</s>",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 3,
35
+ "content": "<unk>",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ }
42
+ ],
43
+ "normalizer": null,
44
+ "pre_tokenizer": {
45
+ "type": "Whitespace"
46
+ },
47
+ "post_processor": null,
48
+ "decoder": null,
49
+ "model": {
50
+ "type": "WordLevel",
51
+ "vocab": {
52
+ "<pad>": 0,
53
+ "<s>": 1,
54
+ "</s>": 2,
55
+ "<unk>": 3,
56
+ "a": 4,
57
+ "b": 5,
58
+ "c": 6,
59
+ "d": 7,
60
+ "e": 8,
61
+ "f": 9,
62
+ "g": 10,
63
+ "h": 11,
64
+ "i": 12,
65
+ "j": 13,
66
+ "k": 14,
67
+ "EQUALS": 15,
68
+ "END": 16,
69
+ "l": 17,
70
+ "OP_IDENTITY": 18,
71
+ "OP_REVERSE": 19,
72
+ "OP_ROTATE_LEFT_1": 20,
73
+ "OP_ROTATE_RIGHT_1": 21,
74
+ "OP_ROTATE_LEFT_2": 22,
75
+ "OP_ROTATE_RIGHT_2": 23,
76
+ "OP_SWAP_HALVES": 24,
77
+ "OP_REVERSE_FIRST_HALF": 25,
78
+ "OP_REVERSE_SECOND_HALF": 26,
79
+ "OP_REVERSE_EACH_2BLOCK": 27,
80
+ "OP_REVERSE_EACH_4BLOCK": 28,
81
+ "OP_INTERLEAVE_HALVES": 29
82
+ },
83
+ "unk_token": "<unk>"
84
+ }
85
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<pad>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ }
35
+ },
36
+ "bos_token": "<s>",
37
+ "clean_up_tokenization_spaces": false,
38
+ "eos_token": "</s>",
39
+ "extra_special_tokens": {},
40
+ "model_max_length": 512,
41
+ "pad_token": "<pad>",
42
+ "tokenizer_class": "PreTrainedTokenizerFast",
43
+ "unk_token": "<unk>"
44
+ }