-
Notifications
You must be signed in to change notification settings - Fork 76
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
Token mis-manipulation for Chinese Characters #108
Comments
Can you give a code sample of a reproduction of a problematic scenario that this line change solves? |
Hi, thanks for the detailed example. |
token_list : [19788,818,2828,440,13501,4202,8798, 697, 121, 2256] |
Code is here https://github.com/noamgat/lm-format-enforcer/blob/main/lmformatenforcer/integrations/transformers.py#L69

This line will affect generation for chinese character. Use
cleaned = decoded
will temporarily solve this problem.Since I don't know the whole logic, seeking permenant solution.
The text was updated successfully, but these errors were encountered: