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

TypeError: coercing to Unicode: need string or buffer, list found #50

Open
masakuri opened this issue Dec 2, 2017 · 4 comments
Open

Comments

@masakuri
Copy link

masakuri commented Dec 2, 2017

When I run the following command to predict, I got this error.
$ deep-crf predict data/predict --delimiter=' ' --model_filename ./save_model_dir/bilstm-cnn-crf_adam_epoch43.model --save_dir save_model_dir/ --save_name bilstm-cnn-crf_adam --predicted_output predicted43.txt --gpu 0

data/predict is the following data format.

SOCCER - JAPAN GET LUCKY WIN , CHINA IN SURPRISE DEFEAT .
Nadim Ladki
AL-AIN , United Arab Emirates 1996-12-06
Japan began the defence of their Asian Cup title with a lucky 2-1 win against Syria in a Group C championship match on Friday .
But China saw their luck desert them in the second match of the group , crashing to a surprise 2-0 defeat to newcomers Uzbekistan .

I have no idea to solve it.
Any ideas? Thank you.

@aonotas
Copy link
Owner

aonotas commented Dec 2, 2017

Hi, thank you for your report.
I notice that I also get the same error.
I will try to fix it.

@massongit Do you have any idea to solve this error?

@aonotas
Copy link
Owner

aonotas commented Dec 2, 2017

I'm sorry. I found the bug and I fix it now.
Please use recent commit version? @masakuri

If you have further problems, Please let me know.

@massongit
Copy link
Contributor

massongit commented Dec 3, 2017

Fixed commit: 845def4

Note: If you wish to associate an issue or PR with a commit, you should include "#{issue (PR) number}" in the commit message.

@masakuri
Copy link
Author

masakuri commented Dec 3, 2017

It worked!
Thank you for your help.

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

3 participants