Home
last modified time | relevance | path

Searched refs:bestModel (Results 1 – 2 of 2) sorted by relevance

/external/libtextclassifier/java/src/com/android/textclassifier/
DTextClassifierImpl.java518 final ModelFileManager.ModelFile bestModel = in getAnnotatorImpl() local
520 if (bestModel == null) { in getAnnotatorImpl()
523 if (annotatorImpl == null || !Objects.equals(annotatorModelInUse, bestModel)) { in getAnnotatorImpl()
524 TcLog.d(TAG, "Loading " + bestModel); in getAnnotatorImpl()
527 new File(bestModel.getPath()), ParcelFileDescriptor.MODE_READ_ONLY); in getAnnotatorImpl()
538 annotatorModelInUse = bestModel; in getAnnotatorImpl()
550 final ModelFileManager.ModelFile bestModel = langIdModelFileManager.findBestModelFile(null); in getLangIdImpl() local
551 if (bestModel == null) { in getLangIdImpl()
554 if (langIdImpl == null || !Objects.equals(langIdModelInUse, bestModel)) { in getLangIdImpl()
555 TcLog.d(TAG, "Loading " + bestModel); in getLangIdImpl()
[all …]
DModelFileManager.java72 ModelFile bestModel = null; in findBestModelFile() local
75 if (model.isPreferredTo(bestModel)) { in findBestModelFile()
76 bestModel = model; in findBestModelFile()
80 return bestModel; in findBestModelFile()