Home
last modified time | relevance | path

Searched refs:ClassificationResult (Results 1 – 24 of 24) sorted by relevance

/external/libtextclassifier/annotator/duration/
Dduration_test.cc118 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 …]
Dduration.cc84 ClassificationResult* classification_result) const { in ClassifyText()
176 ClassificationResult classification{Collections::Duration(), in FindDurationStartingAt()
Dduration.h75 ClassificationResult* classification_result) const;
/external/libtextclassifier/annotator/number/
Dnumber_test.cc94 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 …]
Dnumber.cc30 ClassificationResult* classification_result) const { in ClassifyText()
38 ClassificationResult classification{Collections::Number(), 1.0}; in ClassifyText()
66 ClassificationResult classification{Collections::Number(), in FindAll()
Dnumber.h52 ClassificationResult* classification_result) const;
/external/libtextclassifier/actions/
Dlua-utils.h39 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()
Dranker_test.cc96 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 …]
Dlua-utils.cc41 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()
Dactions-suggestions_test.cc95 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 …]
Dtypes.h53 ClassificationResult entity;
Dactions-suggestions.cc1084 const ClassificationResult& classification_result = in SuggestActionsFromAnnotations()
/external/libtextclassifier/java/com/google/android/textclassifier/
DAnnotatorModel.java136 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/
Dtypes.h209 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() argument
249 const ClassificationResult& result);
254 const std::vector<ClassificationResult>& results);
264 std::vector<ClassificationResult> classification;
272 std::vector<ClassificationResult> arg_classification) in AnnotatedSpan()
Dannotator.cc601 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 …]
Dtypes.cc55 const ClassificationResult& result) { in operator <<()
63 const std::vector<ClassificationResult>& results) { in operator <<()
65 for (const ClassificationResult& result : results) { in operator <<()
Dannotator.h243 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;
Dtypes-test-util.h36 TC3_DECLARE_PRINT_OPERATOR(ClassificationResult)
Dannotator_jni.cc49 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/
Dcontact-engine-dummy.h43 ClassificationResult* classification_result) const { in ClassifyText()
/external/libtextclassifier/annotator/installed_app/
Dinstalled-app-engine-dummy.h43 ClassificationResult* classification_result) const { in ClassifyText()
/external/libtextclassifier/annotator/knowledge/
Dknowledge-engine-dummy.h35 ClassificationResult* classification_result) const { in ClassifyText()
/external/libtextclassifier/utils/intents/
Dintent-generator.h77 const ClassificationResult& classification,
Dintent-generator.cc708 const ClassificationResult& classification, in AnnotatorJniEnvironment()
728 const ClassificationResult& classification_;
836 const jstring device_locales, const ClassificationResult& classification, in GenerateIntents()