/external/libtextclassifier/native/annotator/number/ |
D | number_test-include.cc | 117 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 …]
|
D | number.cc | 34 ClassificationResult* classification_result) const { in ClassifyText() 35 TC3_CHECK(classification_result != nullptr); in ClassifyText() 58 *classification_result = result.classification[0]; in ClassifyText()
|
D | number.h | 57 ClassificationResult* classification_result) const;
|
/external/libtextclassifier/native/annotator/ |
D | annotator_jni.cc | 132 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 …]
|
D | annotator.cc | 1617 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()
|
D | annotator.h | 337 std::vector<ClassificationResult>* classification_result) const;
|
/external/libtextclassifier/native/annotator/vocab/ |
D | vocab-annotator-impl.cc | 66 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()
|
D | vocab-annotator-impl.h | 58 ClassificationResult *classification_result,
|
/external/libtextclassifier/native/annotator/translate/ |
D | translate.cc | 35 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()
|
D | translate.h | 41 ClassificationResult* classification_result) const;
|
/external/libtextclassifier/native/annotator/contact/ |
D | contact-engine-dummy.h | 45 ClassificationResult* classification_result) const { in ClassifyText() argument 56 ClassificationResult* classification_result) const {} in AddContactMetadataToKnowledgeClassificationResult() argument
|
/external/libtextclassifier/native/annotator/person_name/ |
D | person-name-engine-dummy.h | 44 ClassificationResult* classification_result) const { in ClassifyText() argument
|
/external/libtextclassifier/native/annotator/installed_app/ |
D | installed-app-engine-dummy.h | 43 ClassificationResult* classification_result) const { in ClassifyText() argument
|
/external/libtextclassifier/native/annotator/knowledge/ |
D | knowledge-engine-dummy.h | 44 ClassificationResult* classification_result) const { in ClassifyText() argument
|
/external/libtextclassifier/native/annotator/grammar/ |
D | grammar-annotator.h | 51 ClassificationResult* classification_result) const;
|
D | grammar-annotator.cc | 270 ClassificationResult* classification_result) const { in ClassifyText() 320 input_context, best_match, best_interpretation, classification_result); in ClassifyText()
|
/external/libtextclassifier/native/annotator/duration/ |
D | duration.h | 86 ClassificationResult* classification_result) const;
|
D | duration.cc | 127 ClassificationResult* classification_result) const { in ClassifyText() 147 *classification_result = annotated_span.classification[0]; in ClassifyText()
|
/external/libtextclassifier/native/actions/ |
D | actions-suggestions.cc | 1170 const ClassificationResult& classification_result = in SuggestActionsFromAnnotations() local 1178 action_annotation.entity = classification_result; in SuggestActionsFromAnnotations() 1179 action_annotation.name = classification_result.collection; in SuggestActionsFromAnnotations()
|