Skip to content

Conversation

@ishitab02
Copy link

This PR resolves the AttributeError caused by BaseTokenizer.normalize() calling a non-existent method.
Fixes #1882

Before

The normalize method was calling self._tokenizer.normalize(sequence), which does not exist on the internal Tokenizer object. This was raising an AttributeError.

After

Changed to use self._tokenizer.normalizer.normalize_str(sequence) which is the correct public API for normalizing plain strings.

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.

BaseTokenizer.normalize method calls non-existent _tokenizer.normalize

1 participant