mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
cld3 elapse
This commit is contained in:
parent
c08f36f21c
commit
f825f94c9a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue