Skip to content

Update word_piece_tokenizer.py #617

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

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

ADITYADAS1999
Copy link
Contributor

WordPieceTokenizer inconsistent lowercase behavior #599

@@ -281,7 +281,7 @@ def __init__(
self,
vocabulary=None,
sequence_length: int = None,
lowercase: bool = False,
Copy link
Member

Choose a reason for hiding this comment

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

Lowercase=False is actually the default we want here! The incorrect default is above in the pretokenizer function.

Copy link
Contributor Author

@ADITYADAS1999 ADITYADAS1999 Dec 29, 2022

Choose a reason for hiding this comment

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

So, changes will be in pretokenizer function right?

ererere

@mattdangerw
Copy link
Member

Thanks!

@mattdangerw mattdangerw merged commit 7774071 into keras-team:master Jan 4, 2023
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.

2 participants