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

Pass kwargs to tokenizer when creating preprocessor #1632

Merged
merged 1 commit into from
May 17, 2024

Conversation

SamanehSaadat
Copy link
Member

Pass kwargs to tokenizer when creating preprocessor from a tokenizer.json.
This PR addresses #1627. This is a bug that was missed in #1547.

Copy link
Member

@mattdangerw mattdangerw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@@ -181,7 +181,7 @@ def from_preset(

tokenizer = load_serialized_object(preset, TOKENIZER_CONFIG_FILE)
tokenizer.load_preset_assets(preset)
preprocessor = cls(tokenizer=tokenizer)
preprocessor = cls(tokenizer=tokenizer, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@mattdangerw mattdangerw merged commit 38fed74 into keras-team:master May 17, 2024
11 checks passed
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.

None yet

2 participants