char-rnn-tensorflow icon indicating copy to clipboard operation
char-rnn-tensorflow copied to clipboard

Make sampling with a unicode prime work correctly

Open IvanVergiliev opened this issue 8 years ago • 2 comments

Running sample.py with a unicode prime fails with something in the spirit of

sample.py: error: argument --prime: invalid unicode value: [...]

Using the approach suggested in https://stackoverflow.com/a/22947334/596167 appears to fix things.

IvanVergiliev avatar Jun 19 '17 06:06 IvanVergiliev

@IvanVergiliev The build failed because:

./sample.py:10: 'six.text_type' imported but unused

Please remove the import. Thank you.

hugovk avatar Jun 19 '17 10:06 hugovk

Done. Also, apparently the old default value (u' ') was incompatible with the new type so I changed that as well.

IvanVergiliev avatar Jun 22 '17 04:06 IvanVergiliev