Wrapper around the google SentencePiece tokenizer. Used to tokenize text for language models and other NLP tasks.
C#
1
21 commits
updated Mar 10, 2026
The tokenizers should be thread-safe, as the underlying sentencepiece processor is thread-safe. This has not been extensively tested however!
Uses the tokenizer of a sentencepiece model, but a different vocabulary for the ids.
Use the facebook xlm-roberta-base (Alt1, Alt2) model
Wrapper around the google SentencePiece tokenizer. Used to tokenize text for language models and other NLP tasks.
C#
1
21 commits
updated Mar 10, 2026
The tokenizers should be thread-safe, as the underlying sentencepiece processor is thread-safe. This has not been extensively tested however!
Uses the tokenizer of a sentencepiece model, but a different vocabulary for the ids.
Use the facebook xlm-roberta-base (Alt1, Alt2) model