Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/number/
Dnumber_test-include.cc117 ClassificationResult classification_result; in TEST_F() local
120 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
122 EXPECT_EQ(classification_result.collection, "number"); in TEST_F()
123 EXPECT_EQ(classification_result.numeric_value, 12345); in TEST_F()
124 EXPECT_FLOAT_EQ(classification_result.numeric_double_value, 12345); in TEST_F()
128 ClassificationResult classification_result; in TEST_F() local
131 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
133 EXPECT_EQ(classification_result.collection, "number"); in TEST_F()
134 EXPECT_EQ(classification_result.numeric_value, 12345); in TEST_F()
135 EXPECT_FLOAT_EQ(classification_result.numeric_double_value, 12345.12345); in TEST_F()
[all …]
Dnumber.cc34 ClassificationResult* classification_result) const { in ClassifyText()
35 TC3_CHECK(classification_result != nullptr); in ClassifyText()
58 *classification_result = result.classification[0]; in ClassifyText()
Dnumber.h57 ClassificationResult* classification_result) const;
/external/libtextclassifier/native/annotator/
Dannotator_jni.cc132 const ClassificationResult& classification_result, bool generate_intents) { in ClassificationResultWithIntentsToJObject() argument
135 JniHelper::NewStringUTF(env, classification_result.collection.c_str())); in ClassificationResultWithIntentsToJObject()
138 if (classification_result.datetime_parse_result.IsSet()) { in ClassificationResultWithIntentsToJObject()
143 classification_result.datetime_parse_result.time_ms_utc, in ClassificationResultWithIntentsToJObject()
144 classification_result.datetime_parse_result.granularity)); in ClassificationResultWithIntentsToJObject()
149 classification_result.serialized_knowledge_result; in ClassificationResultWithIntentsToJObject()
162 if (!classification_result.contact_name.empty()) { in ClassificationResultWithIntentsToJObject()
165 env, classification_result.contact_name.c_str())); in ClassificationResultWithIntentsToJObject()
169 if (!classification_result.contact_given_name.empty()) { in ClassificationResultWithIntentsToJObject()
173 env, classification_result.contact_given_name.c_str())); in ClassificationResultWithIntentsToJObject()
[all …]
Dannotator.cc1617 std::vector<ClassificationResult>* classification_result) const { in RegexClassifyText()
1642 classification_result->push_back( in RegexClassifyText()
1648 &classification_result->back().serialized_entity_data)) { in RegexClassifyText()
2131 const ClassificationResult& classification_result) { in RemoveNotEnabledEntityTypes() argument
2133 classification_result.collection); in RemoveNotEnabledEntityTypes()
2151 for (auto& classification_result : candidate.classification) { in AddContactMetadataToKnowledgeClassificationResults() local
2153 &classification_result); in AddContactMetadataToKnowledgeClassificationResults()
Dannotator.h337 std::vector<ClassificationResult>* classification_result) const;
/external/libtextclassifier/native/annotator/vocab/
Dvocab-annotator-impl.cc66 ClassificationResult classification_result; in Annotate() local
70 trigger_on_beginner_words, &classification_result, &stripped_span); in Annotate()
72 results->push_back(AnnotatedSpan{stripped_span, {classification_result}}); in Annotate()
91 bool trigger_on_beginner_words, ClassificationResult* classification_result, in ClassifyTextInternal() argument
123 *classification_result = in ClassifyTextInternal()
Dvocab-annotator-impl.h58 ClassificationResult *classification_result,
/external/libtextclassifier/native/annotator/translate/
Dtranslate.cc35 ClassificationResult* classification_result) const { in ClassifyText()
69 classification_result->collection = Collections::Translate(); in ClassifyText()
70 classification_result->score = options_->score(); in ClassifyText()
71 classification_result->priority_score = options_->priority_score(); in ClassifyText()
72 classification_result->serialized_entity_data = in ClassifyText()
Dtranslate.h41 ClassificationResult* classification_result) const;
/external/libtextclassifier/native/annotator/contact/
Dcontact-engine-dummy.h45 ClassificationResult* classification_result) const { in ClassifyText() argument
56 ClassificationResult* classification_result) const {} in AddContactMetadataToKnowledgeClassificationResult() argument
/external/libtextclassifier/native/annotator/person_name/
Dperson-name-engine-dummy.h44 ClassificationResult* classification_result) const { in ClassifyText() argument
/external/libtextclassifier/native/annotator/installed_app/
Dinstalled-app-engine-dummy.h43 ClassificationResult* classification_result) const { in ClassifyText() argument
/external/libtextclassifier/native/annotator/knowledge/
Dknowledge-engine-dummy.h44 ClassificationResult* classification_result) const { in ClassifyText() argument
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.h51 ClassificationResult* classification_result) const;
Dgrammar-annotator.cc270 ClassificationResult* classification_result) const { in ClassifyText()
320 input_context, best_match, best_interpretation, classification_result); in ClassifyText()
/external/libtextclassifier/native/annotator/duration/
Dduration.h86 ClassificationResult* classification_result) const;
Dduration.cc127 ClassificationResult* classification_result) const { in ClassifyText()
147 *classification_result = annotated_span.classification[0]; in ClassifyText()
/external/libtextclassifier/native/actions/
Dactions-suggestions.cc1170 const ClassificationResult& classification_result = in SuggestActionsFromAnnotations() local
1178 action_annotation.entity = classification_result; in SuggestActionsFromAnnotations()
1179 action_annotation.name = classification_result.collection; in SuggestActionsFromAnnotations()