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

output is showing UNICODE, not the given input as trained #91

Open
nahianushan opened this issue Mar 8, 2021 · 2 comments
Open

output is showing UNICODE, not the given input as trained #91

nahianushan opened this issue Mar 8, 2021 · 2 comments
Labels

Comments

@nahianushan
Copy link

it don’t recognize Bangla word.
Whenever i train it named "১" [ "১“ means one ]
it shows "\u09e7“ instead of "১“
and also "\u09e8" instead of "২"

Screenshot (129)

Can you help me to get rid of this situation, thank you

@nahianushan nahianushan changed the title output is showing UNICODE, not the given input output is showing UNICODE, not the given input as trained Mar 8, 2021
@bishoph
Copy link
Owner

bishoph commented Mar 8, 2021

The output in your screenshot shows a debug message. A debug message is meant to help to debug the code and find/understand issues. In this special case the array contains a string encoded in Unicode. The array is printed in it's raw form and this is because the developer wants to see the original, unconverted content of the array. This is a feature and not a bug. If you want to print the output decoded you can achieve this by writing your own plugin.

@bishoph
Copy link
Owner

bishoph commented Mar 8, 2021

The output comes from the default print plugin (https://github.com/bishoph/sopare/blob/testing/plugins/print/__init__.py) which provides the simplest form of an example. Feel free to change/enhance/optimize the default plugin and/or write your own custom plugin to print the content of the array in your favorite form.

@bishoph bishoph added the wontfix label Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants