Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/number/
Dnumber_test-include.cc138 ClassificationResult classification_result; in TEST_F() local
141 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
143 EXPECT_EQ(classification_result.collection, "number"); in TEST_F()
144 EXPECT_EQ(classification_result.numeric_value, 12345); in TEST_F()
145 EXPECT_FLOAT_EQ(classification_result.numeric_double_value, 12345); in TEST_F()
150 ClassificationResult classification_result; in TEST_F() local
153 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
157 ClassificationResult classification_result; in TEST_F() local
160 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification_result)); in TEST_F()
162 EXPECT_EQ(classification_result.collection, "number"); in TEST_F()
[all …]
Dnumber.cc35 ClassificationResult* classification_result) const { in ClassifyText()
36 TC3_CHECK(classification_result != nullptr); in ClassifyText()
60 *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.cc1643 std::vector<ClassificationResult>* classification_result) const { in RegexClassifyText()
1668 classification_result->push_back( in RegexClassifyText()
1674 &classification_result->back().serialized_entity_data)) { in RegexClassifyText()
2135 const ClassificationResult& classification_result) { in RemoveNotEnabledEntityTypes() argument
2137 classification_result.collection); in RemoveNotEnabledEntityTypes()
2155 for (auto& classification_result : candidate.classification) { in AddContactMetadataToKnowledgeClassificationResults() local
2157 &classification_result); in AddContactMetadataToKnowledgeClassificationResults()
Dannotator.h340 std::vector<ClassificationResult>* classification_result) const;
/external/libtextclassifier/native/annotator/vocab/
Dvocab-annotator-impl.cc69 ClassificationResult classification_result; in Annotate() local
73 trigger_on_beginner_words, &classification_result, &stripped_span); in Annotate()
75 results->push_back(AnnotatedSpan{stripped_span, {classification_result}}); in Annotate()
94 bool trigger_on_beginner_words, ClassificationResult* classification_result, in ClassifyTextInternal() argument
129 *classification_result = in ClassifyTextInternal()
Dvocab-annotator-impl.h58 ClassificationResult *classification_result,
/external/libtextclassifier/native/annotator/translate/
Dtranslate.cc37 ClassificationResult* classification_result) const { in ClassifyText()
75 classification_result->collection = Collections::Translate(); in ClassifyText()
76 classification_result->score = options_->score(); in ClassifyText()
77 classification_result->priority_score = options_->priority_score(); in ClassifyText()
78 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/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/knowledge/
Dknowledge-engine-dummy.h46 ClassificationResult* classification_result) const { in ClassifyText() argument
/external/libtextclassifier/native/annotator/duration/
Dduration.cc128 ClassificationResult* classification_result) const { in ClassifyText()
150 *classification_result = annotated_span.classification[0]; in ClassifyText()
Dduration.h86 ClassificationResult* classification_result) const;
/external/libtextclassifier/native/actions/
Dactions-suggestions.cc1211 const ClassificationResult& classification_result = in SuggestActionsFromAnnotations() local
1219 action_annotation.entity = classification_result; in SuggestActionsFromAnnotations()
1220 action_annotation.name = classification_result.collection; in SuggestActionsFromAnnotations()
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/task_library/
Dimage_classifier.md215 classification_result = classifier.classify(image)
Doverview.md195 classification_result = classifier.classify(image)