Searched refs:bestModel (Results 1 – 2 of 2) sorted by relevance
518 final ModelFileManager.ModelFile bestModel = in getAnnotatorImpl() local520 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() local551 if (bestModel == null) { in getLangIdImpl()554 if (langIdImpl == null || !Objects.equals(langIdModelInUse, bestModel)) { in getLangIdImpl()555 TcLog.d(TAG, "Loading " + bestModel); in getLangIdImpl()[all …]
72 ModelFile bestModel = null; in findBestModelFile() local75 if (model.isPreferredTo(bestModel)) { in findBestModelFile()76 bestModel = model; in findBestModelFile()80 return bestModel; in findBestModelFile()