/external/libtextclassifier/annotator/duration/ |
D | duration_test.cc | 142 std::vector<AnnotatedSpan> result; in TEST_F() 149 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(14, 24)), in TEST_F() 150 Field(&AnnotatedSpan::classification, in TEST_F() 161 std::vector<AnnotatedSpan> result; in TEST_F() 168 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(16, 34)), in TEST_F() 169 Field(&AnnotatedSpan::classification, in TEST_F() 180 std::vector<AnnotatedSpan> result; in TEST_F() 187 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(14, 35)), in TEST_F() 188 Field(&AnnotatedSpan::classification, in TEST_F() 198 std::vector<AnnotatedSpan> result; in TEST_F() [all …]
|
D | duration.cc | 95 AnnotatedSpan annotated_span; in ClassifyText() 110 std::vector<AnnotatedSpan>* results) const { in FindAll() 117 AnnotatedSpan span; in FindAll() 132 AnnotatedSpan* result) const { in FindDurationStartingAt() 194 result->source = AnnotatedSpan::Source::DURATION; in FindDurationStartingAt()
|
D | duration.h | 80 std::vector<AnnotatedSpan>* results) const; 108 AnnotatedSpan* result) const;
|
/external/libtextclassifier/annotator/number/ |
D | number_test.cc | 111 std::vector<AnnotatedSpan> result; in TEST_F() 133 std::vector<AnnotatedSpan> result; in TEST_F() 141 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(8, 9)), in TEST_F() 142 Field(&AnnotatedSpan::classification, in TEST_F() 149 std::vector<AnnotatedSpan> result; in TEST_F() 157 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(0, 2)), in TEST_F() 158 Field(&AnnotatedSpan::classification, in TEST_F() 231 std::vector<AnnotatedSpan> result; in TEST_F() 240 std::vector<AnnotatedSpan> result; in TEST_F() 249 std::vector<AnnotatedSpan> result; in TEST_F()
|
D | number.cc | 51 std::vector<AnnotatedSpan>* result) const { in FindAll() 71 AnnotatedSpan annotated_span; in FindAll()
|
D | number.h | 57 std::vector<AnnotatedSpan>* result) const;
|
/external/libtextclassifier/annotator/ |
D | annotator.cc | 593 bool Annotator::FilteredForAnnotation(const AnnotatedSpan& span) const { in FilteredForAnnotation() 606 bool Annotator::FilteredForSelection(const AnnotatedSpan& span) const { in FilteredForSelection() 714 std::vector<AnnotatedSpan> candidates; in SuggestSelection() 769 [](const AnnotatedSpan& a, const AnnotatedSpan& b) { in SuggestSelection() 820 int FirstNonOverlappingSpanIndex(const std::vector<AnnotatedSpan>& candidates, in FirstNonOverlappingSpanIndex() 838 const std::vector<AnnotatedSpan>& candidates, const std::string& context, in ResolveConflicts() 878 const AnnotatedSpan::Source source1, in DoSourcesConflict() 879 const AnnotatedSpan::Source source2) { in DoSourcesConflict() 893 (1 << static_cast<int>(AnnotatedSpan::Source::DURATION))) && in DoSourcesConflict() 895 (1 << static_cast<int>(AnnotatedSpan::Source::DATETIME)))) { in DoSourcesConflict() [all …]
|
D | annotator.h | 249 std::vector<AnnotatedSpan> Annotate( 304 bool ResolveConflicts(const std::vector<AnnotatedSpan>& candidates, 317 const std::vector<AnnotatedSpan>& candidates, 331 std::vector<AnnotatedSpan>* result) const; 388 std::vector<AnnotatedSpan>* result) const; 425 std::vector<AnnotatedSpan>* result, 435 std::vector<AnnotatedSpan>* result) const; 438 bool FilteredForAnnotation(const AnnotatedSpan& span) const; 441 bool FilteredForSelection(const AnnotatedSpan& span) const; 483 std::vector<AnnotatedSpan>* annotated_spans) const;
|
D | types.h | 257 struct AnnotatedSpan { struct 269 AnnotatedSpan() = default; argument 271 AnnotatedSpan(CodepointSpan arg_span, in AnnotatedSpan() function 278 const AnnotatedSpan& span);
|
D | types-test-util.h | 35 TC3_DECLARE_PRINT_OPERATOR(AnnotatedSpan)
|
D | types.cc | 73 const AnnotatedSpan& span) { in operator <<()
|
D | annotator_jni.cc | 47 using libtextclassifier3::AnnotatedSpan; 579 const std::vector<AnnotatedSpan> annotations = in TC3_JNI_METHOD()
|
/external/libtextclassifier/actions/ |
D | lua-utils.h | 82 const AnnotatedSpan& annotated_span, 97 : public LuaEnvironment::ItemIterator<std::vector<AnnotatedSpan>> { 107 int Item(const std::vector<AnnotatedSpan>* spans, const int64 pos, in Item()
|
D | actions-suggestions_test.cc | 93 AnnotatedSpan annotation; in TEST_F() 138 AnnotatedSpan annotation; in TEST_F() 163 AnnotatedSpan flight_annotation; in TEST_F() 166 AnnotatedSpan flight_annotation2; in TEST_F() 169 AnnotatedSpan email_annotation; in TEST_F() 204 AnnotatedSpan flight_annotation; in TEST_F() 207 AnnotatedSpan flight_annotation2; in TEST_F() 210 AnnotatedSpan email_annotation; in TEST_F() 255 AnnotatedSpan flight_annotation; in TestSuggestActionsFromAnnotations() 258 AnnotatedSpan email_annotation; in TestSuggestActionsFromAnnotations() [all …]
|
D | types.h | 131 std::vector<AnnotatedSpan> annotations;
|
D | lua-utils.cc | 109 const AnnotatedSpan& annotated_span, in PushAnnotatedSpan()
|
D | actions-suggestions.cc | 1047 std::vector<AnnotatedSpan> annotations = message.annotations; in SuggestActionsFromAnnotations() 1079 for (const AnnotatedSpan& annotation : annotations) { in SuggestActionsFromAnnotations()
|
/external/libtextclassifier/java/com/google/android/textclassifier/ |
D | AnnotatorModel.java | 162 public AnnotatedSpan[] annotate(String text, AnnotationOptions options) { in annotate() 364 public static final class AnnotatedSpan { class in AnnotatorModel 369 AnnotatedSpan(int startIndex, int endIndex, ClassificationResult[] classification) { in AnnotatedSpan() method in AnnotatorModel.AnnotatedSpan 585 private native AnnotatedSpan[] nativeAnnotate( in nativeAnnotate()
|
/external/libtextclassifier/annotator/contact/ |
D | contact-engine-dummy.h | 49 std::vector<AnnotatedSpan>* result) const { in Chunk()
|
/external/libtextclassifier/annotator/installed_app/ |
D | installed-app-engine-dummy.h | 49 std::vector<AnnotatedSpan>* result) const { in Chunk()
|
/external/libtextclassifier/annotator/knowledge/ |
D | knowledge-engine-dummy.h | 40 std::vector<AnnotatedSpan>* result) const { in Chunk()
|