1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

cld3 elapse

This commit is contained in:
M66B 2021-02-03 14:25:08 +01:00
parent c08f36f21c
commit f825f94c9a

View file

@ -65,9 +65,11 @@ public class TextHelper {
System.arraycopy(octets, 0, sample, 0, MAX_SAMPLE_SIZE);
}
long start = new Date().getTime();
Log.i("cld3 sample=" + sample.length);
DetectResult result = jni_detect_language(sample);
Log.i("Language=" + result);
long elapse = new Date().getTime() - start;
Log.i("cld3 language=" + result + " elapse=" + elapse);
if (result.probability < MIN_PROBABILITY)
return null;