Searched refs:textLanguage (Results 1 – 2 of 2) sorted by relevance
126 TextLanguage textLanguage = textClassifier.detectLanguage(request); in detectedLanguage() local128 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()
377 TextLanguage textLanguage = classifier.detectLanguage(null, null, request); in testDetectLanguage() local378 assertThat(textLanguage, isTextLanguage("en")); in testDetectLanguage()385 TextLanguage textLanguage = classifier.detectLanguage(null, null, request); in testDetectLanguage_japanese() local386 assertThat(textLanguage, isTextLanguage("ja")); in testDetectLanguage_japanese()