Skip to content

Refactor to allow for non-ASCII data#8

Open
codeman38 wants to merge 1 commit into
spro:masterfrom
codeman38:unicode
Open

Refactor to allow for non-ASCII data#8
codeman38 wants to merge 1 commit into
spro:masterfrom
codeman38:unicode

Conversation

@codeman38

Copy link
Copy Markdown

This modifies the read_file method to extract the character vocabulary from the input file, which is then passed as an argument to the generate and char_tensor methods.

This also modifies the output file format to include the vocabulary. generate.py will parse this format by default, but fall back to string.printable if it's unable to read a vocabulary.

This modifies the read_file method to extract the character vocabulary
from the input file, which is then passed as an argument to the generate
and char_tensor methods.

This also modifies the output file format to include the vocabulary.
generate.py will parse this format by default, but fall back to
string.printable if it's unable to read a vocabulary.
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.

1 participant