Home
last modified time | relevance | path

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

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DTextClassifierApiTest.java126 TextLanguage textLanguage = textClassifier.detectLanguage(request); in detectedLanguage() local
128 assertThat(textLanguage.getLocaleHypothesisCount()).isGreaterThan(0); in detectedLanguage()
129 assertThat(textLanguage.getLocale(0).getLanguage()).isEqualTo("ja"); in detectedLanguage()
130 assertThat(textLanguage.getConfidenceScore(ULocale.JAPANESE)).isGreaterThan(0f); in detectedLanguage()
DTextClassifierImplTest.java377 TextLanguage textLanguage = classifier.detectLanguage(null, null, request); in testDetectLanguage() local
378 assertThat(textLanguage, isTextLanguage("en")); in testDetectLanguage()
385 TextLanguage textLanguage = classifier.detectLanguage(null, null, request); in testDetectLanguage_japanese() local
386 assertThat(textLanguage, isTextLanguage("ja")); in testDetectLanguage_japanese()