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

Could random unicode noise potentially generate invalid UTF-8 #42

Open
XapaJIaMnu opened this issue Nov 20, 2023 · 0 comments
Open

Could random unicode noise potentially generate invalid UTF-8 #42

XapaJIaMnu opened this issue Nov 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@XapaJIaMnu
Copy link
Contributor

I've seen models generate invalid UTF-8. I think that potentially for some groups of symbols, there could be order constraints (IE diacritics? Korean constructed blocks?

I'm pretty sure this is the case but haven't tested it. Someone could confirm? Also, potential fix?

def get_random_unicode_words(min_length: int=2, max_length: int=10, max_words: int=3) -> List[str]:

@XapaJIaMnu XapaJIaMnu added the bug Something isn't working label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant