budgetdex
Copyright 2026 The budgetdex authors

This product is licensed under the Apache License, Version 2.0 (see LICENSE).

src/budgetdex/spm.py contains a Python re-implementation of the SentencePiece
Unigram segmentation rules as implemented in the Hugging Face `tokenizers`
library (Unigram "encode_optimized"), and uses `tokenizers` at run time for
normalisation and pre-tokenisation.
  - tokenizers: Copyright Hugging Face, Inc. Licensed under the Apache License 2.0.
  - SentencePiece (the Unigram algorithm): Copyright Google LLC.
    Licensed under the Apache License 2.0.

No model weights or vocabularies are distributed with this package. The
optional models are downloaded by the user with `budgetdex embed --download`
and remain under their own licences (see README.md, "Models and licences").
