Searched refs:lang_id (Results 1 – 16 of 16) sorted by relevance
30 namespace lang_id { namespace45 std::unique_ptr<LangId> lang_id(CreateLanguageDetector()); in TEST() local47 EXPECT_EQ("en", lang_id->FindLanguage("This text is written in English.")); in TEST()49 lang_id->FindLanguage("This text is written in English. ")); in TEST()51 lang_id->FindLanguage(" This text is written in English. ")); in TEST()52 EXPECT_EQ("fr", lang_id->FindLanguage("Vive la France! Vive la France!")); in TEST()53 EXPECT_EQ("ro", lang_id->FindLanguage("Sunt foarte foarte foarte fericit!")); in TEST()59 std::unique_ptr<LangId> lang_id(CreateLanguageDetector()); in TEST() local65 lang_id->SetDefaultLanguage(kDefaultLanguage); in TEST()69 EXPECT_EQ(kDefaultLanguage, lang_id->FindLanguage("y")); in TEST()[all …]
32 lang_id::ContinuousBagOfNgramsFunction::RegisterClass(); in SetUp()33 lang_id::RelevantScriptFeature::RegisterClass(); in SetUp()39 : public EmbeddingFeatureExtractor<lang_id::LightSentenceExtractor,40 lang_id::LightSentence> {
29 using libtextclassifier::nlp_core::lang_id::LangId;248 LangId* lang_id = reinterpret_cast<LangId*>(ptr); in Java_android_view_textclassifier_LangId_nativeFindLanguages() local250 lang_id->FindLanguages(ToStlString(env, text)); in Java_android_view_textclassifier_LangId_nativeFindLanguages()259 LangId* lang_id = reinterpret_cast<LangId*>(ptr); in Java_android_view_textclassifier_LangId_nativeClose() local260 delete lang_id; in Java_android_view_textclassifier_LangId_nativeClose()265 std::unique_ptr<LangId> lang_id(new LangId(fd)); in Java_android_view_textclassifier_LangId_nativeGetVersion() local266 return lang_id->version(); in Java_android_view_textclassifier_LangId_nativeGetVersion()
25 namespace lang_id {36 TC_DECLARE_CLASS_REGISTRY_NAME(lang_id::LightSentenceFeature);
26 lang_id::LightSentenceFeature);
27 namespace lang_id {
28 namespace lang_id {
30 namespace lang_id {
33 namespace lang_id {
34 namespace lang_id {
27 namespace lang_id { namespace
31 namespace lang_id { namespace
22 namespace lang_id {
30 namespace lang_id { namespace
51 namespace lang_id { namespace