SentencePiece for Android not found #3742
Replies: 3 comments 2 replies
-
@lenyturmel where did you find the |
Beta Was this translation helpful? Give feedback.
-
okay, no problem Probably, I will try to use DSL later and to build my own native lib for Android, but not this time ;) I am very interested in following your work if you succeed in building the lib and using DJL on Android. So, feel free to keep me in touch. |
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I develop an Android application with Kotlin.
I am trying to use ai.djl to create a sentencepiece tokenizer from files.
I added the following dependencies to my project:
I added
libdjl_tokenizer.so
to my JNI liv forlder (and the native C++_shared.so) and I loaded the libs usingSystem.load.Library
I try to create the sentencepiece tokenizer as follow:
It fails with the error:
java.io.IOException: Resource not found in classpath: native/lib/linux-aarch64/libsentencepiece_native.so
First I wonder why it is looking for a lib for the ptf
linux-aarch64
...Then, I opened sentencepiece-0.33.0.jar to look for native C++ file for my project but there is no native lib for the android plateform. There is only the libs for Linux_aarch64, linux-x86_64, Osx-x86_64, and win-x86_64. There is no lib for arm64-v8a
Could you please help me ?
What I am doing wrong?
Could you please tell me how to create and run a SpTokenizer for the Android (arm64-v8a)?
Any help would be very appreciated ;)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions