Crates.io | nipah_tokenizer |
lib.rs | nipah_tokenizer |
version | 0.1.0 |
source | src |
created_at | 2023-01-14 15:24:28.621463 |
updated_at | 2023-01-14 15:24:28.621463 |
description | A powerful yet simple text tokenizer for your everyday needs! |
homepage | |
repository | https://github.com/JoaoVictorVP/nipah_tokenizer |
max_upload_size | |
id | 758904 |
size | 29,632 |
A powerful yet simple text tokenizer for your everyday needs!
let options = nipah_tokenizer::options::default();
let text = "Hello, World!".to_string();
use nipah_tokenizer::tokenizer::tokenize;
let tokens = tokenize(text, &options);
Output will be like:
["Hello": Id] [Comma] ["World": Id] [Exclamation]
You can use it as your hearth desires, and it is pretty versatile
Happy coding!