Darcara/SentencePieceTokenizer

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

See the code

README

SentencePiece Tokenizer

Nuget (with prereleases) GitHub License

Usage

The tokenizers should be thread-safe, as the underlying sentencepiece processor is thread-safe. This has not been extensively tested however!

Marian Tokenizer

Uses the tokenizer of a sentencepiece model, but a different vocabulary for the ids.

XlmRoberta Tokenizer

Use the facebook xlm-roberta-base (Alt1, Alt2) model

References

Darcara/SentencePieceTokenizer

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

See the code

README

SentencePiece Tokenizer

Nuget (with prereleases) GitHub License

Usage

The tokenizers should be thread-safe, as the underlying sentencepiece processor is thread-safe. This has not been extensively tested however!

Marian Tokenizer

Uses the tokenizer of a sentencepiece model, but a different vocabulary for the ids.

XlmRoberta Tokenizer

Use the facebook xlm-roberta-base (Alt1, Alt2) model

References