Release 0.9.1: regexr stable pin and CI improvements#15
Merged
farhan-syah merged 6 commits intomainfrom Mar 15, 2026
Merged
Conversation
Add `WordPieceTokenizer` for BERT-family models with full BasicTokenizer preprocessing: lowercasing, Unicode accent stripping (NFD decomposition), and CJK/punctuation splitting. Implements greedy longest-match subword tokenization with `##` continuation prefixes, UNK fallback for words exceeding max length, and decode that reconstructs text by joining subwords. Add `Tokenize` trait as a unified interface across all backends (`Tokenizer`, `SentencePieceTokenizer`, `WordPieceTokenizer`), enabling generic tokenization code via trait objects. New dependencies: `unicode-normalization` and `unicode-general-category` for accent stripping and punctuation detection.
Add WordPieceTokenizer and Tokenize trait sections to the API guide with usage examples and method reference. Update README and crate description to reflect BPE + SentencePiece + WordPiece support. Reformat Markdown tables in special_tokens.md for consistent column alignment.
Move lint, multi-platform test, cross-compile, and Python binding jobs into a reusable test.yml workflow callable by both ci.yml and the release workflow. ci.yml becomes a thin dispatcher with concurrency cancellation and draft-PR skipping. Adds cross-compile checks for aarch64-unknown-linux-gnu and x86_64-apple-darwin, and switches to rust-cache for faster CI runs.
Relax the regexr dependency from the pinned pre-release 0.1.0-beta.5 to the stable ^0.1 semver range so that patch releases are picked up automatically.
Cross-compilation checks for aarch64 and macOS are already covered by regexr's CI, so maintaining a duplicate job here is unnecessary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
0.1.0stable dependency (was0.1.0-beta.5)test.ymlworkflow + thinci.ymlwrapperrust-cache, concurrency control, and draft PR skippingTest plan
cargo publish --dry-runsucceeds against crates.io regexr 0.1.0