diff --git a/.gitignore b/.gitignore index a535ce347..c5f02f278 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ LatinIME.iml build/ local.properties crashreporting.properties -keystore.properties \ No newline at end of file +keystore.properties +key.jks \ No newline at end of file diff --git a/java/res/raw/.gitignore b/java/res/raw/.gitignore index 855a49467..e69de29bb 100644 --- a/java/res/raw/.gitignore +++ b/java/res/raw/.gitignore @@ -1,2 +0,0 @@ -*.gguf -*tokenizer.model \ No newline at end of file diff --git a/java/res/raw/ml3_q8.gguf b/java/res/raw/ml3_q8.gguf new file mode 100644 index 000000000..9d9072362 Binary files /dev/null and b/java/res/raw/ml3_q8.gguf differ diff --git a/java/res/raw/ml3_tokenizer.model b/java/res/raw/ml3_tokenizer.model new file mode 100644 index 000000000..3a2184750 Binary files /dev/null and b/java/res/raw/ml3_tokenizer.model differ diff --git a/java/src/org/futo/inputmethod/latin/xlm/LanguageModel.java b/java/src/org/futo/inputmethod/latin/xlm/LanguageModel.java index 4d5273b16..948425da3 100644 --- a/java/src/org/futo/inputmethod/latin/xlm/LanguageModel.java +++ b/java/src/org/futo/inputmethod/latin/xlm/LanguageModel.java @@ -83,16 +83,16 @@ public class LanguageModel extends Dictionary { @Override public void run() { if(mNativeState != 0) return; - String modelPath = getPathToModelResource(context, R.raw.ml3, R.raw.ml3_tokenizer, true); + String modelPath = getPathToModelResource(context, R.raw.ml3_q8, R.raw.ml3_tokenizer, false); mNativeState = openNative(modelPath); if(mNativeState == 0){ - modelPath = getPathToModelResource(context, R.raw.ml3, R.raw.ml3_tokenizer, true); + modelPath = getPathToModelResource(context, R.raw.ml3_q8, R.raw.ml3_tokenizer, true); mNativeState = openNative(modelPath); } if(mNativeState == 0){ - throw new RuntimeException("Failed to load R.raw.ml3, R.raw.ml3_tokenizer model"); + throw new RuntimeException("Failed to load R.raw.ml3_q8, R.raw.ml3_tokenizer model"); } } }; diff --git a/native/jni/Android.mk b/native/jni/Android.mk index e7db93656..5eae9a841 100755 --- a/native/jni/Android.mk +++ b/native/jni/Android.mk @@ -17,7 +17,7 @@ LOCAL_PATH := $(call my-dir) ############ some local flags # If you change any of those flags, you need to rebuild both libjni_latinime_common_static # and the shared library that uses libjni_latinime_common_static. -FLAG_DBG ?= true +FLAG_DBG ?= false FLAG_DO_PROFILE ?= false ######################################