cld3 elapse

This commit is contained in:
M66B 2021-02-03 14:25:08 +01:00
parent c08f36f21c
commit f825f94c9a
1 changed files with 3 additions and 1 deletions

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;