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

Does not word with other language #113

Open
ShuvenduRoy opened this issue Nov 5, 2017 · 5 comments
Open

Does not word with other language #113

ShuvenduRoy opened this issue Nov 5, 2017 · 5 comments

Comments

@ShuvenduRoy
Copy link

Where I have to change to support UTF-8. so that I can train it on other languages

@john-parton
Copy link
Contributor

It actually should work with utf-8 if you're using the latest version.

What are your versions:

  • char-rnn-tensorflow
  • tensorflow
  • python

Thanks.

@lowtronik
Copy link

Actually the sample outputs my Greek text as raw utf-8 , " \xcf\xce\x83, \xb1\xb9\ .........."

@ShuvenduRoy
Copy link
Author

@lowtronik that hex format. just decode it
result.decode("utf-8", "replace")

@lowtronik
Copy link

@ShuvenduBikash I just deleted .encode('utf-8') and it works

@foocp
Copy link

foocp commented Feb 16, 2018

I have the same problem, it generates raw text like this

\xc3\xa8p

However if I follow your suggestion and delete .encode('utf-8') it fails with this error:

UnicodeEncodeError: 'ascii' codec can't encode character '\u201c' in position 444: ordinal not in range(128)

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

No branches or pull requests

4 participants