-
Notifications
You must be signed in to change notification settings - Fork 0
tokenizer tokenizer
GitHub Action edited this page Jul 9, 2026
·
1 revision
tokenizer(std::filesystem::path path, bool input = false)Reads saved vocab if input is true otherwise initializes new vocab.
A tokenizer using a greedy algorithm.
| Variable | Type |
|---|---|
vocab |
std::vector<std::string> |
path |
std::filesystem::path |
// Initializing a tokenizer
tokenizer t("./tokenstokenstokensssss.txt");- AIUsage
- Block
- Embedder
- Introduction
- Layer
- Model
- NeuralNetwork
- PositionalEncoding
- SelfAttention
- Tokenizer
- Utility