Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement eq in SentencePieceModel based on __getstate__
This allows comparing two vocabularies without loading the model. Currently, eq is implemented by comparing the md5 checksum of the loaded models, which requires the model to be loaded. It also ignores other parameters of the vocabulary such as `extra_ids`, `reverse_extra_ids`, etc. PiperOrigin-RevId: 684142783
- Loading branch information