Searched refs:lang_id_result (Results 1 – 2 of 2) sorted by relevance
101 LangIdResult lang_id_result; in FindLanguage() local102 FindLanguages(text, &lang_id_result, /* max_results = */ 1); in FindLanguage()103 if (lang_id_result.predictions.empty()) { in FindLanguage()107 const std::string &language = lang_id_result.predictions[0].first; in FindLanguage()108 const float probability = lang_id_result.predictions[0].second; in FindLanguage()
120 const std::vector<std::pair<std::string, float>> lang_id_result = in BackoffDetectLanguages() local138 for (const auto& [language, score] : lang_id_result) { in BackoffDetectLanguages()