You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@predictionio.apache.org by ifpelset <gi...@git.apache.org> on 2017/02/21 08:42:22 UTC
[GitHub] incubator-predictionio issue #350: 'Digital gibberish' when use non-English ...
GitHub user ifpelset opened an issue:
https://github.com/apache/incubator-predictionio/issues/350
'Digital gibberish' when use non-English to predict the category result
'Digital gibberish' when use non-English to predict the category result.
I debug it and see a line **_new String(ByteStreams.toByteArray(fs.open(new Path(uri))).map(_.toChar))_**, at the end of line, force use 'map' to convert every byte to char, I think this is the reason of 'Digital gibberish'.
I use the 'Digital gibberish' and use getChars function to get the char array, then convert char array to byte, and construct a new String by this byte array. 'Digital gibberish' is dissapeared.
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---