nipah_tokenizer

Crates.ionipah_tokenizer
lib.rsnipah_tokenizer
version0.1.0
sourcesrc
created_at2023-01-14 15:24:28.621463
updated_at2023-01-14 15:24:28.621463
descriptionA powerful yet simple text tokenizer for your everyday needs!
homepage
repositoryhttps://github.com/JoaoVictorVP/nipah_tokenizer
max_upload_size
id758904
size29,632
João Victor VP - N (JoaoVictorVP)

documentation

README

nipah_tokenizer

A powerful yet simple text tokenizer for your everyday needs!

322977877_dark_magic_and_black_fire-transformed

How To Use

  1. Obtain the default options (or create yourself your configuration):
let options = nipah_tokenizer::options::default();
  1. Get some text
let text = "Hello, World!".to_string();
  1. Tokenize your text!
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!

Commit count: 14

cargo fmt