/external/libtextclassifier/annotator/duration/ |
D | duration_test.cc | 118 ClassificationResult classification; in TEST_F() 124 AllOf(Field(&ClassificationResult::collection, "duration"), in TEST_F() 125 Field(&ClassificationResult::duration_ms, 15 * 60 * 1000))); in TEST_F() 129 ClassificationResult classification; in TEST_F() 135 AllOf(Field(&ClassificationResult::collection, "duration"), in TEST_F() 136 Field(&ClassificationResult::duration_ms, 15 * 60 * 1000))); in TEST_F() 152 Field(&ClassificationResult::collection, "duration"), in TEST_F() 153 Field(&ClassificationResult::duration_ms, in TEST_F() 171 Field(&ClassificationResult::collection, "duration"), in TEST_F() 172 Field(&ClassificationResult::duration_ms, in TEST_F() [all …]
|
D | duration.cc | 84 ClassificationResult* classification_result) const { in ClassifyText() 176 ClassificationResult classification{Collections::Duration(), in FindDurationStartingAt()
|
D | duration.h | 75 ClassificationResult* classification_result) const;
|
/external/libtextclassifier/annotator/number/ |
D | number_test.cc | 94 ClassificationResult classification_result; in TEST_F() 104 ClassificationResult classification_result; in TEST_F() 144 Field(&ClassificationResult::collection, "number"), in TEST_F() 145 Field(&ClassificationResult::numeric_value, 9))))))); in TEST_F() 160 Field(&ClassificationResult::collection, "number"), in TEST_F() 161 Field(&ClassificationResult::numeric_value, -5))))))); in TEST_F() 165 ClassificationResult classification_result; in TEST_F() 172 AllOf(Field(&ClassificationResult::collection, "number"), in TEST_F() 173 Field(&ClassificationResult::numeric_value, -999999999999999999L))); in TEST_F() 177 ClassificationResult classification_result; in TEST_F() [all …]
|
D | number.cc | 30 ClassificationResult* classification_result) const { in ClassifyText() 38 ClassificationResult classification{Collections::Number(), 1.0}; in ClassifyText() 66 ClassificationResult classification{Collections::Number(), in FindAll()
|
D | number.h | 52 ClassificationResult* classification_result) const;
|
/external/libtextclassifier/actions/ |
D | lua-utils.h | 39 void PushAnnotation(const ClassificationResult& classification, 42 void PushAnnotation(const ClassificationResult& classification, 72 int AnnotationIterator<ClassificationResult>::Item( 73 const std::vector<ClassificationResult>* annotations, StringPiece key, 83 const AnnotationIterator<ClassificationResult>& annotation_iterator, 92 ClassificationResult ReadClassificationResult( 100 const AnnotationIterator<ClassificationResult>& annotation_iterator, in AnnotatedSpanIterator() 115 AnnotationIterator<ClassificationResult> annotation_iterator_; 161 const AnnotationIterator<ClassificationResult>& annotation_iterator, in ConversationIterator()
|
D | ranker_test.cc | 96 annotation.entity = ClassificationResult("address", 0.5); in TEST() 107 annotation.entity = ClassificationResult("address", 1.0); in TEST() 118 annotation.entity = ClassificationResult("phone", 0.5); in TEST() 148 annotation.entity = ClassificationResult("address", 0.5); in TEST() 159 annotation.entity = ClassificationResult("address", 1.0); in TEST() 170 annotation.entity = ClassificationResult("phone", 0.5); in TEST() 202 annotation.entity = ClassificationResult("phone", 1.0); in TEST() 213 annotation.entity = ClassificationResult("code", 1.0); in TEST() 277 annotation.entity = ClassificationResult("phone", 1.0); in TEST() 307 annotation.entity = ClassificationResult("phone", 1.0); in TEST() [all …]
|
D | lua-utils.cc | 41 int AnnotationIterator<ClassificationResult>::Item( in Item() 42 const std::vector<ClassificationResult>* annotations, StringPiece key, in Item() 45 for (const ClassificationResult& annotation : *annotations) { in Item() 73 void PushAnnotation(const ClassificationResult& classification, in PushAnnotation() 99 void PushAnnotation(const ClassificationResult& classification, in PushAnnotation() 110 const AnnotationIterator<ClassificationResult>& annotation_iterator, in PushAnnotatedSpan() 196 ClassificationResult ReadClassificationResult( in ReadClassificationResult() 198 ClassificationResult classification; in ReadClassificationResult()
|
D | actions-suggestions_test.cc | 95 annotation.classification = {ClassificationResult("address", 1.0)}; in TEST_F() 140 annotation.classification = {ClassificationResult("address", 1.0)}; in TEST_F() 165 flight_annotation.classification = {ClassificationResult("flight", 2.5)}; in TEST_F() 168 flight_annotation2.classification = {ClassificationResult("flight", 3.0)}; in TEST_F() 171 email_annotation.classification = {ClassificationResult("email", 2.0)}; in TEST_F() 206 flight_annotation.classification = {ClassificationResult("flight", 2.5)}; in TEST_F() 209 flight_annotation2.classification = {ClassificationResult("flight", 3.0)}; in TEST_F() 212 email_annotation.classification = {ClassificationResult("email", 2.0)}; in TEST_F() 257 flight_annotation.classification = {ClassificationResult("flight", 2.0)}; in TestSuggestActionsFromAnnotations() 260 email_annotation.classification = {ClassificationResult("email", 1.0)}; in TestSuggestActionsFromAnnotations() [all …]
|
D | types.h | 53 ClassificationResult entity;
|
D | actions-suggestions.cc | 1084 const ClassificationResult& classification_result = in SuggestActionsFromAnnotations()
|
/external/libtextclassifier/java/com/google/android/textclassifier/ |
D | AnnotatorModel.java | 136 public ClassificationResult[] classifyText( in classifyText() 147 public ClassificationResult[] classifyText( in classifyText() 236 public static final class ClassificationResult { class in AnnotatorModel 255 public ClassificationResult( in ClassificationResult() method in AnnotatorModel.ClassificationResult 367 private final ClassificationResult[] classification; 369 AnnotatedSpan(int startIndex, int endIndex, ClassificationResult[] classification) { in AnnotatedSpan() 383 public ClassificationResult[] getClassification() { in getClassification() 576 private native ClassificationResult[] nativeClassifyText( in nativeClassifyText()
|
/external/libtextclassifier/annotator/ |
D | types.h | 209 struct ClassificationResult { struct 233 explicit ClassificationResult() : score(-1.0f), priority_score(-1.0) {} in ClassificationResult() argument 235 ClassificationResult(const std::string& arg_collection, float arg_score) in ClassificationResult() function 240 ClassificationResult(const std::string& arg_collection, float arg_score, in ClassificationResult() function 249 const ClassificationResult& result); 254 const std::vector<ClassificationResult>& results); 264 std::vector<ClassificationResult> classification; 272 std::vector<ClassificationResult> arg_classification) in AnnotatedSpan()
|
D | annotator.cc | 601 const ClassificationResult& classification) const { in FilteredForClassification() 615 const std::vector<ClassificationResult>& classification) { in ClassifiedAsOther() 621 const std::vector<ClassificationResult>& classification) { in GetPriorityScore() 932 std::vector<ClassificationResult> classification; in ResolveConflict() 1119 std::vector<ClassificationResult>* classification_results) const { in ModelClassifyText() 1180 std::vector<ClassificationResult>* classification_results) { in SortClassificationResults() 1182 [](const ClassificationResult& a, const ClassificationResult& b) { in SortClassificationResults() 1193 std::vector<ClassificationResult>* classification_results) const { in ModelClassifyText() 1205 std::vector<ClassificationResult>* classification_results, in ModelClassifyText() 1361 std::vector<ClassificationResult>* classification_result) const { in RegexClassifyText() [all …]
|
D | types.cc | 55 const ClassificationResult& result) { in operator <<() 63 const std::vector<ClassificationResult>& results) { in operator <<() 65 for (const ClassificationResult& result : results) { in operator <<()
|
D | annotator.h | 243 std::vector<ClassificationResult> ClassifyText( 341 std::vector<ClassificationResult>* classification_results, 350 std::vector<ClassificationResult>* classification_results) const; 358 std::vector<ClassificationResult>* classification_results) const; 369 std::vector<ClassificationResult>* classification_result) const; 376 std::vector<ClassificationResult>* classification_results) const; 440 const ClassificationResult& classification) const;
|
D | types-test-util.h | 36 TC3_DECLARE_PRINT_OPERATOR(ClassificationResult)
|
D | annotator_jni.cc | 49 using libtextclassifier3::ClassificationResult; 122 const ClassificationResult& classification_result, bool generate_intents) { in ClassificationResultWithIntentsToJObject() 241 const std::vector<ClassificationResult>& classification_result, in ClassificationResultsWithIntentsToJObjectArray() 288 const std::vector<ClassificationResult>& classification_result) { in ClassificationResultsToJObjectArray() 557 const std::vector<ClassificationResult> classification_result = in TC3_JNI_METHOD()
|
/external/libtextclassifier/annotator/contact/ |
D | contact-engine-dummy.h | 43 ClassificationResult* classification_result) const { in ClassifyText()
|
/external/libtextclassifier/annotator/installed_app/ |
D | installed-app-engine-dummy.h | 43 ClassificationResult* classification_result) const { in ClassifyText()
|
/external/libtextclassifier/annotator/knowledge/ |
D | knowledge-engine-dummy.h | 35 ClassificationResult* classification_result) const { in ClassifyText()
|
/external/libtextclassifier/utils/intents/ |
D | intent-generator.h | 77 const ClassificationResult& classification,
|
D | intent-generator.cc | 708 const ClassificationResult& classification, in AnnotatorJniEnvironment() 728 const ClassificationResult& classification_; 836 const jstring device_locales, const ClassificationResult& classification, in GenerateIntents()
|