Home
last modified time | relevance | path

Searched refs:ClassifyText (Results 1 – 25 of 27) sorted by relevance

12

/external/libtextclassifier/native/annotator/number/
Dnumber_test-include.cc118 EXPECT_TRUE(number_annotator_.ClassifyText( in TEST_F()
129 EXPECT_TRUE(number_annotator_.ClassifyText( in TEST_F()
143 EXPECT_TRUE(number_annotator_.ClassifyText( in TEST_F()
146 EXPECT_FALSE(number_annotator_.ClassifyText( in TEST_F()
154 EXPECT_TRUE(number_annotator_.ClassifyText( in TEST_F()
193 EXPECT_FALSE(number_annotator_.ClassifyText( in TEST_F()
196 EXPECT_FALSE(number_annotator_.ClassifyText( in TEST_F()
199 EXPECT_FALSE(number_annotator_.ClassifyText( in TEST_F()
207 EXPECT_TRUE(number_annotator_.ClassifyText( in TEST_F()
214 EXPECT_FALSE(number_annotator_.ClassifyText( in TEST_F()
[all …]
Dnumber.h55 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices,
Dnumber.cc31 bool NumberAnnotator::ClassifyText( in ClassifyText() function in libtextclassifier3::NumberAnnotator
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc90 FirstResult(classifier->ClassifyText( in VerifyClassifyText()
92 EXPECT_EQ("phone", FirstResult(classifier->ClassifyText( in VerifyClassifyText()
97 FirstResult(classifier->ClassifyText( in VerifyClassifyText()
102 FirstResult(classifier->ClassifyText( in VerifyClassifyText()
108 EXPECT_EQ("other", FirstResult(classifier->ClassifyText("obama", {0, 5}))); in VerifyClassifyText()
109 EXPECT_EQ("other", FirstResult(classifier->ClassifyText("asdf", {0, 4}))); in VerifyClassifyText()
112 classifier->ClassifyText("", {0, 0}); in VerifyClassifyText()
113 classifier->ClassifyText("asdf", {0, 0}); in VerifyClassifyText()
114 classifier->ClassifyText("asdf", {0, 27}); in VerifyClassifyText()
115 classifier->ClassifyText("asdf", {-30, 300}); in VerifyClassifyText()
[all …]
Dannotator.cc1720 std::vector<ClassificationResult> Annotator::ClassifyText( in ClassifyText() function in libtextclassifier3::Annotator
1777 ->ClassifyText(context, selection_indices, options.annotation_usecase, in ClassifyText()
1790 if (contact_engine_ && contact_engine_->ClassifyText( in ClassifyText()
1798 person_name_engine_->ClassifyText(context, selection_indices, in ClassifyText()
1808 installed_app_engine_->ClassifyText(context, selection_indices, in ClassifyText()
1842 number_annotator_->ClassifyText(context_unicode, selection_indices, in ClassifyText()
1851 duration_annotator_->ClassifyText(context_unicode, selection_indices, in ClassifyText()
1861 translate_annotator_->ClassifyText(context_unicode, selection_indices, in ClassifyText()
1869 if (grammar_annotator_ && grammar_annotator_->ClassifyText( in ClassifyText()
1877 pod_ner_annotator_->ClassifyText(context_unicode, selection_indices, in ClassifyText()
[all …]
Dannotator.h195 std::vector<ClassificationResult> ClassifyText(
/external/libtextclassifier/native/annotator/translate/
Dtranslate_test.cc77 EXPECT_TRUE(translate_annotator_.ClassifyText( in TEST_F()
95 EXPECT_TRUE(translate_annotator_.ClassifyText(UTF8ToUnicodeText("学校"), in TEST_F()
116 EXPECT_FALSE(translate_annotator_.ClassifyText( in TEST_F()
124 EXPECT_TRUE(translate_annotator_.ClassifyText( in TEST_F()
135 EXPECT_FALSE(translate_annotator_.ClassifyText( in TEST_F()
Dtranslate.h39 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices,
Dtranslate.cc32 bool TranslateAnnotator::ClassifyText( in ClassifyText() function in libtextclassifier3::TranslateAnnotator
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator_test.cc187 EXPECT_TRUE(annotator.ClassifyText( in TEST_F()
242 EXPECT_FALSE(annotator.ClassifyText( in TEST_F()
246 EXPECT_FALSE(annotator.ClassifyText( in TEST_F()
251 EXPECT_TRUE(annotator.ClassifyText( in TEST_F()
303 EXPECT_TRUE(annotator.ClassifyText( in TEST_F()
310 EXPECT_FALSE(annotator.ClassifyText( in TEST_F()
538 annotator.ClassifyText(locales, text, CodepointSpan{11, 16}, &result)); in TEST_F()
543 annotator.ClassifyText(locales, text, CodepointSpan{51, 57}, &result)); in TEST_F()
548 annotator.ClassifyText(locales, text, CodepointSpan{76, 82}, &result)); in TEST_F()
Dgrammar-annotator.h49 bool ClassifyText(const std::vector<Locale>& locales, const UnicodeText& text,
Dgrammar-annotator.cc267 bool GrammarAnnotator::ClassifyText( in ClassifyText() function in libtextclassifier3::GrammarAnnotator
/external/libtextclassifier/native/annotator/person_name/
Dperson-name-engine-dummy.h43 bool ClassifyText(const std::string& context, CodepointSpan selection_indices, in ClassifyText() function
/external/libtextclassifier/native/annotator/installed_app/
Dinstalled-app-engine-dummy.h42 bool ClassifyText(const std::string& context, CodepointSpan selection_indices, in ClassifyText() function
/external/libtextclassifier/native/annotator/experimental/
Dexperimental-dummy.h50 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices, in ClassifyText() function
/external/libtextclassifier/native/annotator/contact/
Dcontact-engine-dummy.h44 bool ClassifyText(const std::string& context, CodepointSpan selection_indices, in ClassifyText() function
/external/libtextclassifier/native/annotator/vocab/
Dvocab-annotator-impl.h43 bool ClassifyText(const UnicodeText &context, CodepointSpan click,
Dvocab-annotator-impl.cc78 bool VocabAnnotator::ClassifyText( in ClassifyText() function in libtextclassifier3::VocabAnnotator
/external/libtextclassifier/native/annotator/knowledge/
Dknowledge-engine-dummy.h40 Status ClassifyText(const std::string& text, CodepointSpan selection_indices, in ClassifyText() function
/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl.h49 bool ClassifyText(const UnicodeText &context, CodepointSpan click,
Dpod-ner-impl_test.cc534 ASSERT_TRUE(annotator->ClassifyText(UTF8ToUnicodeText("We met in New York"), in TEST_F()
Dpod-ner-impl.cc490 bool PodNerAnnotator::ClassifyText(const UnicodeText &context, in ClassifyText() function in libtextclassifier3::PodNerAnnotator
/external/libtextclassifier/native/annotator/duration/
Dduration_test.cc123 EXPECT_TRUE(duration_annotator_.ClassifyText( in TEST_F()
134 EXPECT_TRUE(duration_annotator_.ClassifyText( in TEST_F()
145 EXPECT_FALSE(duration_annotator_.ClassifyText( in TEST_F()
371 EXPECT_TRUE(duration_annotator_.ClassifyText( in TEST_F()
Dduration.h84 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices,
Dduration.cc124 bool DurationAnnotator::ClassifyText( in ClassifyText() function in libtextclassifier3::DurationAnnotator

12