We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. I think there are some problems with NormalizedString (tokenizers 0.15.2).
NormalizedString
In the following example, append() works as expected.
append()
from tokenizers import NormalizedString s = NormalizedString("Hi.") # NormalizedString(original="Hi.", normalized="Hi.") s.append("Hello.") # NormalizedString(original="Hi.", normalized="Hi. Hello.")
After using clear(), append() no longer modifies the normalized attribute.
clear()
normalized
from tokenizers import NormalizedString s = NormalizedString("Hi.") # NormalizedString(original="Hi.", normalized="Hi.") s.clear() # NormalizedString(original="Hi.", normalized="") s.append("Hello.") # NormalizedString(original="Hi.", normalized="")
This is also a problem with prepend.
prepend
The text was updated successfully, but these errors were encountered:
Indeed, would you like to have a go at it and open a PR ? 🤗
Sorry, something went wrong.
Has there been any update about this? I just encountered this as well :)
No branches or pull requests
Hello. I think there are some problems with
NormalizedString
(tokenizers 0.15.2).In the following example,
append()
works as expected.After using
clear()
,append()
no longer modifies thenormalized
attribute.This is also a problem with
prepend
.The text was updated successfully, but these errors were encountered: