File size: 550 Bytes
8420110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Cohere `rerank-multilingual-v3.0` tokenizer

This is the tokenizer for the [Cohere Rerank](https://cohere.com/rerank) Multilingual v3 model.

You can load it with the tokenizers library like this:

```python
from tokenizers import Tokenizer

tokenizer = Tokenizer.from_pretrained("Cohere/rerank-multilingual-v3.0")
text = "Hello World, this is my input string!"
enc = tokenizer.encode(text)
print("Encoded input:")
print(enc.ids)

print("Tokens:")
print(enc.tokens)

number_of_tokens = len(enc.ids)
print("Number of tokens:", number_of_tokens)
```