-
Notifications
You must be signed in to change notification settings - Fork 44
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
Was it possible to have Tensorflow or CoreML model? #113
Comments
Actually, the neural network part is only a small part of Juman++. The code will probably compile and work on arm64, but I haven't tried. |
I had compiled the codes on arm64 yesterday with iOS cmake toolchain https://github.com/leetal/ios-cmake. First step is to fix the backword.hpp line 3470 for iPhoneSDK
Fix the catch platform define logic of
Next step, run the command
Outputs show as below which is fine.
In the next
To solve this, I compiled And finally I got But unluckily, the iOS can not exec binary, so I have to find a way to compile the files into static lib. Change the PLATFORM to OS64COMBINED, and runs the command below.
It will generate a But I am being stuck at here because I don't have any experience with C++. |
Ah, yes, static feature generation compiles a native binary (non cross-compiled). Working on cross-compilation, however, is a out of scope for me, sorry. I'm also not familiar with how the linking works on iOS and whether it is possible to consume C++ libraries from apps easily. We have an issue on making a C interface #61, but it is sort of in a backlog. |
A few hundred MB shouldn't be a big problem. Many games are far larger. Right now iOS itself is using mecab in the background when you highlight Japanese text I believe. Would love to get this working. |
So we can easily migrate it to mobile device.
The text was updated successfully, but these errors were encountered: