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

i have a problem of image caption,can i use another language? #53

Closed
BlueMyOcean opened this issue Jul 18, 2017 · 6 comments
Closed

i have a problem of image caption,can i use another language? #53

BlueMyOcean opened this issue Jul 18, 2017 · 6 comments

Comments

@BlueMyOcean
Copy link

BlueMyOcean commented Jul 18, 2017

I try to train model by using my own datasets, but i have a problem of character encoding, i try to change the caption into Chinese, but the vab.pkl has many ' S'\xe7\xba\xa6' ' and when i use my trained model,it always gives /</start/>/</unk/>/</end/>/ ,so, could you please tell me how to solve this problem?Thank you very much.

@BlueMyOcean BlueMyOcean changed the title i have problem of image caption i have a problem of image caption,can i use another language? Jul 18, 2017
@jtoy
Copy link
Contributor

jtoy commented Jul 19, 2017

try encoding it into utf8 first.

@BlueMyOcean
Copy link
Author

@jtoy but the pkl file can only save as ascii or binary

@BlueMyOcean
Copy link
Author

BlueMyOcean commented Jul 19, 2017

@jtoy the word i saved became S'\xe7\xba\xa6 ' in python 2.7,and when i run the sample, it showed as /</start/>/</unk/>/</end/>/ whatever i tried

@BlueMyOcean
Copy link
Author

So, should i create my own txt file to instead of pkl ?

@BlueMyOcean
Copy link
Author

@yunjey do you have any idea of this?i'm so confused.

@BlueMyOcean
Copy link
Author

Ok, seems like nobody can help.QAQ

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

2 participants