---
title: "sentencepiece 0.2.3 Breaking Changes on PyPI | Since.dev"
description: "What each sentencepiece release removed, renamed or changed: 125 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/sentencepiece
last_updated: 2026-12-04
---

# sentencepiece breaking changes

sentencepiece 0.2.3 (November 5, 2026) is its newest release with breaking changes, 69 of them. The first: Removed contrib/nlcodec fast BPE trainer in sentencepiece 0.2.3. Every breaking API change we have recorded in sentencepiece on PyPI: 125 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.2.3`, released November 5, 2026. [Source repository](https://github.com/google/sentencepiece)

Its 0.2.3 release requires [Python 3.10](https://since.dev/calendar/python/3.10.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.2.0](#v-0-2-0) to [0.2.3](#v-0-2-3): 114 breaking changes in 2 versions.

## sentencepiece 0.2.3 breaking changes

sentencepiece 0.2.3, released November 5, 2026: 69 breaking changes.

- **Removed**  

The contrib/nlcodec fast BPE trainer was removed from the package. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed**  

The package now requires Python 3.10 or later, so older Python versions are no longer supported. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `*AsImmutableProto`  

The deprecated \*AsImmutableProto variants were removed in this release, so code calling them will fail. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `*AsSerializedProto`  

The deprecated \*AsSerializedProto variants were removed in this release, so code calling them will fail. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `ImmutableNBestSentencePieceText`  

ImmutableNBestSentencePieceText was removed from the C++ and Python APIs. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `ImmutableSentencePieceText`  

ImmutableSentencePieceText was removed from the C++ and Python APIs. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `LoadVocabulary`  

LoadVocabulary was removed, so code calling it will fail. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `ResetVocabulary`  

ResetVocabulary was removed, so code calling it will fail. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `SampleEncodeAndScore*`  

The SampleEncodeAndScore methods were removed, so code calling them will fail. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `SelfTestData`  

SelfTestData was removed from sentencepiece_model.proto, so code referencing it will fail. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.3)
- **Removed** `sentencepiece.SentencePieceProcessor.__getstate_for_pickle__`  

\_\_getstate_for_pickle\_\_ was removed from the Python API. [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.calculate_entropy`  

SentencePieceProcessor.calculate_entropy was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.CalculateEntropy`  

CalculateEntropy was removed, so code calling it will fail. [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.decode_ids_as_immutable_proto`  

SentencePieceProcessor.decode_ids_as_immutable_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.decode_ids_as_serialized_proto`  

SentencePieceProcessor.decode_ids_as_serialized_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.decode_pieces_as_immutable_proto`  

SentencePieceProcessor.decode_pieces_as_immutable_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.decode_pieces_as_serialized_proto`  

SentencePieceProcessor.decode_pieces_as_serialized_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.DecodeIdsAsImmutableProto`  

sentencepiece.SentencePieceProcessor.DecodeIdsAsImmutableProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.DecodeIdsAsSerializedProto`  

sentencepiece.SentencePieceProcessor.DecodeIdsAsSerializedProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.DecodePiecesAsImmutableProto`  

sentencepiece.SentencePieceProcessor.DecodePiecesAsImmutableProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.DecodePiecesAsSerializedProto`  

sentencepiece.SentencePieceProcessor.DecodePiecesAsSerializedProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.encode_as_immutable_proto`  

SentencePieceProcessor.encode_as_immutable_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.encode_as_serialized_proto`  

SentencePieceProcessor.encode_as_serialized_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.EncodeAsImmutableProto`  

sentencepiece.SentencePieceProcessor.EncodeAsImmutableProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.EncodeAsSerializedProto`  

sentencepiece.SentencePieceProcessor.EncodeAsSerializedProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.nbest_encode_as_immutable_proto`  

SentencePieceProcessor.nbest_encode_as_immutable_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.nbest_encode_as_serialized_proto`  

SentencePieceProcessor.nbest_encode_as_serialized_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.NBestEncodeAsImmutableProto`  

sentencepiece.SentencePieceProcessor.NBestEncodeAsImmutableProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.NBestEncodeAsSerializedProto`  

sentencepiece.SentencePieceProcessor.NBestEncodeAsSerializedProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.override_normalizer_spec`  

SentencePieceProcessor.override_normalizer_spec was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.OverrideNormalizerSpec`  

OverrideNormalizerSpec was removed from the Python API. [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.parallel_encode_as_immutable_proto`  

SentencePieceProcessor.parallel_encode_as_immutable_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.parallel_encode_as_serialized_proto`  

SentencePieceProcessor.parallel_encode_as_serialized_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.ParallelEncodeAsImmutableProto`  

sentencepiece.SentencePieceProcessor.ParallelEncodeAsImmutableProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.ParallelEncodeAsSerializedProto`  

sentencepiece.SentencePieceProcessor.ParallelEncodeAsSerializedProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_and_score`  

SentencePieceProcessor.sample_encode_and_score was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_and_score_as_ids`  

SentencePieceProcessor.sample_encode_and_score_as_ids was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_and_score_as_immutable_proto`  

SentencePieceProcessor.sample_encode_and_score_as_immutable_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_and_score_as_pieces`  

SentencePieceProcessor.sample_encode_and_score_as_pieces was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_and_score_as_proto`  

SentencePieceProcessor.sample_encode_and_score_as_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_and_score_as_serialized_proto`  

SentencePieceProcessor.sample_encode_and_score_as_serialized_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_as_immutable_proto`  

SentencePieceProcessor.sample_encode_as_immutable_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.sample_encode_as_serialized_proto`  

SentencePieceProcessor.sample_encode_as_serialized_proto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.SampleEncodeAndScore`  

sentencepiece.SentencePieceProcessor.SampleEncodeAndScore was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsIds`  

sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsIds was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsImmutableProto`  

sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsImmutableProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsPieces`  

sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsPieces was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsProto`  

sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsSerializedProto`  

sentencepiece.SentencePieceProcessor.SampleEncodeAndScoreAsSerializedProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)
- **Removed** `sentencepiece.SentencePieceProcessor.SampleEncodeAsImmutableProto`  

sentencepiece.SentencePieceProcessor.SampleEncodeAsImmutableProto was removed in sentencepiece 0.2.3 [pypi.org](https://pypi.org/project/sentencepiece/0.2.3/)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## sentencepiece 0.2.2 breaking changes

sentencepiece 0.2.2, released July 12, 2026: 45 breaking changes.

- **Removed**  

The package stopped publishing and supporting 32-bit Windows wheels. Users on 32-bit Windows must build from source or use another platform. [github.com](https://github.com/google/sentencepiece/releases/tag/v0.2.2)
- **Removed** `sentencepiece.ImmutableNBestSentencePieceText`  

sentencepiece.ImmutableNBestSentencePieceText was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.ImmutableSentencePieceText`  

sentencepiece.ImmutableSentencePieceText was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.ImmutableSentencePieceText_ImmutableSentencePiece`  

sentencepiece.ImmutableSentencePieceText_ImmutableSentencePiece was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.SentencePieceNormalizer.__repr__`  

SentencePieceNormalizer.\_\_repr\_\_ was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.SentencePieceNormalizer.__swig_destroy__`  

SentencePieceNormalizer.\_\_swig_destroy\_\_ was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.SentencePieceNormalizer.Init`  

sentencepiece.SentencePieceNormalizer.Init was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.SentencePieceNormalizer.LoadFromFile`  

sentencepiece.SentencePieceNormalizer.LoadFromFile was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.SentencePieceNormalizer.LoadFromRuleName`  

sentencepiece.SentencePieceNormalizer.LoadFromRuleName was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)
- **Removed** `sentencepiece.SentencePieceNormalizer.LoadFromRuleTSV`  

sentencepiece.SentencePieceNormalizer.LoadFromRuleTSV was removed in sentencepiece 0.2.2 [pypi.org](https://pypi.org/project/sentencepiece/0.2.2/)

And 35 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## sentencepiece 0.2.0 breaking changes

sentencepiece 0.2.0, released February 19, 2024: 11 breaking changes.

- **Removed** `sentencepiece.sentencepiece_model_pb2.ModelProto`  

sentencepiece.sentencepiece_model_pb2.ModelProto was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.sentencepiece_model_pb2.NormalizerSpec`  

sentencepiece.sentencepiece_model_pb2.NormalizerSpec was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.sentencepiece_model_pb2.SelfTestData`  

sentencepiece.sentencepiece_model_pb2.SelfTestData was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.sentencepiece_model_pb2.TrainerSpec`  

sentencepiece.sentencepiece_model_pb2.TrainerSpec was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.sentencepiece_pb2.NBestSentencePieceText`  

sentencepiece.sentencepiece_pb2.NBestSentencePieceText was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.sentencepiece_pb2.SentencePieceText`  

sentencepiece.sentencepiece_pb2.SentencePieceText was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.SentencePieceTrainer__TrainFromMap`  

sentencepiece.SentencePieceTrainer\_\_TrainFromMap was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.SentencePieceTrainer__TrainFromMap2`  

sentencepiece.SentencePieceTrainer\_\_TrainFromMap2 was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.SentencePieceTrainer__TrainFromMap3`  

sentencepiece.SentencePieceTrainer\_\_TrainFromMap3 was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)
- **Removed** `sentencepiece.SentencePieceTrainer__TrainFromMap4`  

sentencepiece.SentencePieceTrainer\_\_TrainFromMap4 was removed in sentencepiece 0.2.0 [pypi.org](https://pypi.org/project/sentencepiece/0.2.0/)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
