Home
last modified time | relevance | path

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

/external/libtextclassifier/annotator/duration/
Dduration_test.cc142 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 …]
Dduration.cc95 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()
Dduration.h80 std::vector<AnnotatedSpan>* results) const;
108 AnnotatedSpan* result) const;
/external/libtextclassifier/annotator/number/
Dnumber_test.cc111 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()
Dnumber.cc51 std::vector<AnnotatedSpan>* result) const { in FindAll()
71 AnnotatedSpan annotated_span; in FindAll()
Dnumber.h57 std::vector<AnnotatedSpan>* result) const;
/external/libtextclassifier/annotator/
Dannotator.cc593 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 …]
Dannotator.h249 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;
Dtypes.h257 struct AnnotatedSpan { struct
269 AnnotatedSpan() = default; argument
271 AnnotatedSpan(CodepointSpan arg_span, in AnnotatedSpan() argument
278 const AnnotatedSpan& span);
Dtypes-test-util.h35 TC3_DECLARE_PRINT_OPERATOR(AnnotatedSpan)
Dtypes.cc73 const AnnotatedSpan& span) { in operator <<()
Dannotator_jni.cc47 using libtextclassifier3::AnnotatedSpan;
579 const std::vector<AnnotatedSpan> annotations = in TC3_JNI_METHOD()
/external/libtextclassifier/actions/
Dlua-utils.h82 const AnnotatedSpan& annotated_span,
97 : public LuaEnvironment::ItemIterator<std::vector<AnnotatedSpan>> {
107 int Item(const std::vector<AnnotatedSpan>* spans, const int64 pos, in Item()
Dactions-suggestions_test.cc93 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 …]
Dtypes.h131 std::vector<AnnotatedSpan> annotations;
Dlua-utils.cc109 const AnnotatedSpan& annotated_span, in PushAnnotatedSpan()
Dactions-suggestions.cc1047 std::vector<AnnotatedSpan> annotations = message.annotations; in SuggestActionsFromAnnotations()
1079 for (const AnnotatedSpan& annotation : annotations) { in SuggestActionsFromAnnotations()
/external/libtextclassifier/java/com/google/android/textclassifier/
DAnnotatorModel.java162 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/
Dcontact-engine-dummy.h49 std::vector<AnnotatedSpan>* result) const { in Chunk()
/external/libtextclassifier/annotator/installed_app/
Dinstalled-app-engine-dummy.h49 std::vector<AnnotatedSpan>* result) const { in Chunk()
/external/libtextclassifier/annotator/knowledge/
Dknowledge-engine-dummy.h40 std::vector<AnnotatedSpan>* result) const { in Chunk()