calpt commited on
Commit
8420110
1 Parent(s): 720ae8e

Add tokenizer

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +21 -0
  3. tokenizer.json +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cohere `rerank-multilingual-v3.0` tokenizer
2
+
3
+ This is the tokenizer for the [Cohere Rerank](https://cohere.com/rerank) Multilingual v3 model.
4
+
5
+ You can load it with the tokenizers library like this:
6
+
7
+ ```python
8
+ from tokenizers import Tokenizer
9
+
10
+ tokenizer = Tokenizer.from_pretrained("Cohere/rerank-multilingual-v3.0")
11
+ text = "Hello World, this is my input string!"
12
+ enc = tokenizer.encode(text)
13
+ print("Encoded input:")
14
+ print(enc.ids)
15
+
16
+ print("Tokens:")
17
+ print(enc.tokens)
18
+
19
+ number_of_tokens = len(enc.ids)
20
+ print("Number of tokens:", number_of_tokens)
21
+ ```
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f39413cfc8829996be621f4fbea8b76f09b6a9d07724fa4fbab32292cb80d5f
3
+ size 16316179