-
Notifications
You must be signed in to change notification settings - Fork 0
tokenizer encode
GitHub Action edited this page Jul 9, 2026
·
1 revision
std::forward_list<int> encode(std::string text)Encodes a string into a token list.
Returns an std::string
| Parameter | Type | Use | Optional |
|---|---|---|---|
text |
std::string |
Text | ❌ |
// Calling the encode() function
tokenizer t("bestvocab.txt");
std::cout << t.encode("Zephyr is a cute dog");- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility