Home
last modified time | relevance | path

Searched refs:lang_id (Results 1 – 16 of 16) sorted by relevance

/external/libtextclassifier/tests/
Dlang-id_test.cc30 namespace lang_id { namespace
45 std::unique_ptr<LangId> lang_id(CreateLanguageDetector()); in TEST() local
47 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() local
65 lang_id->SetDefaultLanguage(kDefaultLanguage); in TEST()
69 EXPECT_EQ(kDefaultLanguage, lang_id->FindLanguage("y")); in TEST()
[all …]
Dembedding-feature-extractor_test.cc32 lang_id::ContinuousBagOfNgramsFunction::RegisterClass(); in SetUp()
33 lang_id::RelevantScriptFeature::RegisterClass(); in SetUp()
39 : public EmbeddingFeatureExtractor<lang_id::LightSentenceExtractor,
40 lang_id::LightSentence> {
/external/libtextclassifier/
Dtextclassifier_jni.cc29 using libtextclassifier::nlp_core::lang_id::LangId;
248 LangId* lang_id = reinterpret_cast<LangId*>(ptr); in Java_android_view_textclassifier_LangId_nativeFindLanguages() local
250 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() local
260 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() local
266 return lang_id->version(); in Java_android_view_textclassifier_LangId_nativeGetVersion()
/external/libtextclassifier/lang_id/
Dlight-sentence-features.h25 namespace lang_id {
36 TC_DECLARE_CLASS_REGISTRY_NAME(lang_id::LightSentenceFeature);
Dlight-sentence-features.cc26 lang_id::LightSentenceFeature);
Dcustom-tokenizer.h27 namespace lang_id {
Drelevant-script-feature.h28 namespace lang_id {
Dlight-sentence.h28 namespace lang_id {
Dlanguage-identifier-features.h30 namespace lang_id {
Dlang-id-brain-interface.h33 namespace lang_id {
Dlang-id.h34 namespace lang_id {
Dcustom-tokenizer.cc27 namespace lang_id { namespace
Drelevant-script-feature.cc31 namespace lang_id { namespace
Dscript-detector.h22 namespace lang_id {
Dlanguage-identifier-features.cc30 namespace lang_id { namespace
Dlang-id.cc51 namespace lang_id { namespace