TeamHG-Memex / eli5

A library for debugging/inspecting machine learning classifiers and explaining their predictions
http://eli5.readthedocs.io
MIT License
2.75k stars 332 forks source link

Unicode support #233

Open pbamotra opened 7 years ago

pbamotra commented 7 years ago

eli5.show_prediction leads to UnicodeEncodeError: 'ascii' codec can't encode character u'\ud574' in position 0: ordinal not in range(128)

I'm dealing with Korean documents.

Sorry can't share snapshots. Was trying on production data.

kmike commented 7 years ago

Can you show the whole traceback?

pbamotra commented 7 years ago
screen shot 2017-08-04 at 11 37 42 am
chenjun0210 commented 6 years ago

I also encountered the same problem In Chinese

kmike commented 6 years ago

@chenjun0210 would it be possible to provide a reproducible example for this issue (or, even better, a pull request with a failing test case)?