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

UTF-8 support #113

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

UTF-8 support #113

wants to merge 5 commits into from

Conversation

vseledkin
Copy link

Adds support of UTF-8, must be compatible with models created from one-byte encoded inputs (but this is not verified), not compatible with old models created from utf-8 because they have sequences of bytes not multibyte characters ...

This PR slightly changes behaviour of file reader, now input processed line by line and if your input has no line delimiters and of big size then memory consumption can increase because such an input will be loaded in memory at once ...

@karpathy
Copy link
Owner

Hi thank you for submitting this PR but I am hesitant to merge it to master in fear of breaking previous functionality etc, since it looks like a major change. However, if this was an entirely separate "uft8loader" class or something like that, with an option to use it instead of the default one that could be quite nice/useful!

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