Home
last modified time | relevance | path

Searched refs:classification_result (Results 1 – 12 of 12) sorted by relevance

/external/libtextclassifier/annotator/number/
Dnumber_test.cc94 ClassificationResult classification_result; in TEST_F() local
97 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
99 EXPECT_EQ(classification_result.collection, "number"); in TEST_F()
100 EXPECT_EQ(classification_result.numeric_value, 12345); in TEST_F()
104 ClassificationResult classification_result; in TEST_F() local
107 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
165 ClassificationResult classification_result; in TEST_F() local
168 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
171 classification_result, in TEST_F()
177 ClassificationResult classification_result; in TEST_F() local
[all …]
Dnumber.cc30 ClassificationResult* classification_result) const { in ClassifyText()
39 TC3_CHECK(classification_result != nullptr); in ClassifyText()
40 classification_result->collection = Collections::Number(); in ClassifyText()
41 classification_result->score = options_->score(); in ClassifyText()
42 classification_result->priority_score = options_->priority_score(); in ClassifyText()
43 classification_result->numeric_value = parsed_value; in ClassifyText()
Dnumber.h52 ClassificationResult* classification_result) const;
/external/libtextclassifier/annotator/
Dannotator_jni.cc122 const ClassificationResult& classification_result, bool generate_intents) { in ClassificationResultWithIntentsToJObject() argument
124 env->NewStringUTF(classification_result.collection.c_str()); in ClassificationResultWithIntentsToJObject()
127 if (classification_result.datetime_parse_result.IsSet()) { in ClassificationResultWithIntentsToJObject()
130 classification_result.datetime_parse_result.time_ms_utc, in ClassificationResultWithIntentsToJObject()
131 classification_result.datetime_parse_result.granularity); in ClassificationResultWithIntentsToJObject()
136 classification_result.serialized_knowledge_result; in ClassificationResultWithIntentsToJObject()
147 if (!classification_result.contact_name.empty()) { in ClassificationResultWithIntentsToJObject()
149 env->NewStringUTF(classification_result.contact_name.c_str()); in ClassificationResultWithIntentsToJObject()
153 if (!classification_result.contact_given_name.empty()) { in ClassificationResultWithIntentsToJObject()
155 env->NewStringUTF(classification_result.contact_given_name.c_str()); in ClassificationResultWithIntentsToJObject()
[all …]
Dannotator.cc1361 std::vector<ClassificationResult>* classification_result) const { in RegexClassifyText()
1386 classification_result->push_back( in RegexClassifyText()
1392 &classification_result->back().serialized_entity_data)) { in RegexClassifyText()
1758 const ClassificationResult& classification_result) { in RemoveNotEnabledEntityTypes() argument
1760 classification_result.collection); in RemoveNotEnabledEntityTypes()
Dannotator.h369 std::vector<ClassificationResult>* classification_result) const;
/external/libtextclassifier/annotator/contact/
Dcontact-engine-dummy.h43 ClassificationResult* classification_result) const { in ClassifyText() argument
/external/libtextclassifier/annotator/installed_app/
Dinstalled-app-engine-dummy.h43 ClassificationResult* classification_result) const { in ClassifyText() argument
/external/libtextclassifier/annotator/knowledge/
Dknowledge-engine-dummy.h35 ClassificationResult* classification_result) const { in ClassifyText() argument
/external/libtextclassifier/annotator/duration/
Dduration.cc84 ClassificationResult* classification_result) const { in ClassifyText()
103 *classification_result = annotated_span.classification[0]; in ClassifyText()
Dduration.h75 ClassificationResult* classification_result) const;
/external/libtextclassifier/actions/
Dactions-suggestions.cc1084 const ClassificationResult& classification_result = in SuggestActionsFromAnnotations() local
1092 action_annotation.entity = classification_result; in SuggestActionsFromAnnotations()
1093 action_annotation.name = classification_result.collection; in SuggestActionsFromAnnotations()