mahrnoud commited on
Commit
9070cdf
·
1 Parent(s): 33ff964

First Commit

Browse files
Files changed (4) hide show
  1. README.md +47 -3
  2. special_tokens_map.json +6 -0
  3. tokenizer.json +0 -0
  4. tokenizer_config.json +45 -0
README.md CHANGED
@@ -1,3 +1,47 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ar
4
+ - en
5
+
6
+ dataset:
7
+ - fka/awesome-chatgpt-prompts
8
+ - open-r1/codeforces
9
+
10
+
11
+ license: mit
12
+ ---
13
+
14
+ ## Miscovery Tokenizer
15
+
16
+ A SentencePiece unigram tokenizer trained on a mix of Arabic and English text, with a vocabulary size of 70,000 tokens.
17
+
18
+ ## Training Data
19
+ This tokenizer was trained on:
20
+ - Arabic Quran.
21
+ - awesome-chatgpt-prompts
22
+ - open-r1/codeforces
23
+
24
+ ## Usage
25
+
26
+ ```python
27
+ from transformers import AutoTokenizer
28
+
29
+ tokenizer = AutoTokenizer.from_pretrained("miscovery/arabic-english-tokenizer")
30
+
31
+ # Example usage
32
+ text = "بسم الله الرحمن الرحيم Hello World"
33
+ encoded = tokenizer(text)
34
+ print(encoded)
35
+ ```
36
+
37
+ ## Features
38
+
39
+ - Vocabulary size: 70,000
40
+ - Model type: Unigram
41
+ - Model Max Length: 512
42
+ - Handles both Arabic and English text
43
+ - Supports Arabic normalization
44
+
45
+
46
+
47
+
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
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<unk>",
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": "</s>",
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": true,
38
+ "eos_token": "</s>",
39
+ "model_max_length": 512,
40
+ "pad_token": "<pad>",
41
+ "padding_side": "right",
42
+ "tokenizer_class": "PreTrainedTokenizerFast",
43
+ "truncation_side": "right",
44
+ "unk_token": "<unk>"
45
+ }