Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Normalizer into a trait #428

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Convert Normalizer into a trait #428

merged 1 commit into from
Dec 2, 2024

Conversation

robertknight
Copy link
Owner

Add a Normalizer trait which provides the common interface for normalizers and rename the previous Normalizer struct to BertNormalizer, to align with the name in tokenizer.json files. Change other parts of the tokenization process to use the normalizer via a trait object.

Part of #427

Add a `Normalizer` trait which provides the common interface for normalizers and
rename the previous `Normalizer` struct to `BertNormalizer`, to align with the
name in tokenizer.json files. Change other parts of the tokenization process
to use the normalizer via a trait object.

Part of #427
@robertknight robertknight merged commit 2af6fc5 into main Dec 2, 2024
2 checks passed
@robertknight robertknight deleted the normalizer-trait branch December 2, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant