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

mocz_tool --mode=hand_writing dosen't work on manjaro linux #438

Closed
ghost opened this issue May 4, 2018 · 2 comments
Closed

mocz_tool --mode=hand_writing dosen't work on manjaro linux #438

ghost opened this issue May 4, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented May 4, 2018

I have problem with mozc_tool's handwriting recognition.
The problem is that every kanji characters I input are resulted as error like below.
image
I posted the error to the manjaro user's forums but no one can't fix it.
https://forum.manjaro.org/t/japanese-hand-writing-recognition-is-broken/41082

Thanks in advance.

@jamesrwaugh
Copy link

Correct me if I'm wrong but it looks like the cloud handwriting mode contains secret sauce not exposed by Google, which won't work out of this box, so the Zinnia mode is always used:
https://github.com/google/mozc/blob/master/src/handwriting/cloud_handwriting.cc#L44

When I build in Debug, and enable logs, I get the following, meaning it seems the Zinnia mode is enabled by default:

./mozc_tool --mode=hand_writing --logtostderr

2019-07-20 23:39:05 20859 140500315393152 ../../handwriting/zinnia_handwriting.cc(76) LOG(ERROR) Cannot open model file:/usr/share/tegaki/models/zinnia/handwriting-ja.model

So, perhaps it would be enough to install the Zinnia model (https://github.com/taku910/zinnia, the default tomoe model most likely) before running. It looks like there are Gyp scripts to do this here as well.

@ghost
Copy link
Author

ghost commented Jul 21, 2019

Installing tegaki-models-zinnia-japanese package has resolved the problem. Thank you.

@ghost ghost closed this as completed Jul 21, 2019
This issue was closed.
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

1 participant