
Cohere `command-nightly` tokenizer

This is the tokenizer for the Cohere `command-nightly` and `command-light-nightly` [generate](https://cohere.ai/generate) models.

You can load it with the tokenizer library like this:

```python
from tokenizers import Tokenizer

tokenizer = Tokenizer.from_pretrained("Cohere/command-nightly")
text = "Hellö World, this is my input string!"
enc = tokenizer.encode(text)
print("Encoded input:")
print(enc)

inv_vocab = {v: k for k, v in tokenizer.get_vocab().items()}
tokens = [inv_vocab[token_id] for token_id in enc.ids]
print("Tokens:")
print(tokens)

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

{"license": "apache-2.0"}
license:apache-2.0 region:us
TAGS
#license-apache-2.0 #region-us 


Cohere 'command-nightly' tokenizer

This is the tokenizer for the Cohere 'command-nightly' and 'command-light-nightly' generate models.

You can load it with the tokenizer library like this:



TAGS
#license-apache-2.0 #region-us 

TAGS
#license-apache-2.0 #region-us 
