Home
last modified time | relevance | path

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

12

/external/libtextclassifier/native/annotator/duration/
Dduration_test.cc153 std::vector<AnnotatedSpan> result; in TEST_F()
160 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(14, 24)), in TEST_F()
161 Field(&AnnotatedSpan::classification, in TEST_F()
172 std::vector<AnnotatedSpan> result; in TEST_F()
179 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(16, 34)), in TEST_F()
180 Field(&AnnotatedSpan::classification, in TEST_F()
191 std::vector<AnnotatedSpan> result; in TEST_F()
198 AllOf(Field(&AnnotatedSpan::span, CodepointSpan(14, 35)), in TEST_F()
199 Field(&AnnotatedSpan::classification, in TEST_F()
210 std::vector<AnnotatedSpan> result; in TEST_F()
[all …]
Dduration.cc138 AnnotatedSpan annotated_span; in ClassifyText()
154 std::vector<AnnotatedSpan>* results) const { in FindAll()
161 AnnotatedSpan span; in FindAll()
176 AnnotatedSpan* result) const { in FindDurationStartingAt()
252 result->source = AnnotatedSpan::Source::DURATION; in FindDurationStartingAt()
Dduration.h91 std::vector<AnnotatedSpan>* results) const;
119 AnnotatedSpan* result) const;
/external/libtextclassifier/native/annotator/number/
Dnumber_test-include.cc104 static Matcher<AnnotatedSpan> IsAnnotatedSpan( in IsAnnotatedSpan()
163 std::vector<AnnotatedSpan> result; in TEST_F()
268 std::vector<AnnotatedSpan> result; in TEST_F()
284 std::vector<AnnotatedSpan> result; in TEST_F()
311 std::vector<AnnotatedSpan> result; in TEST_F()
320 std::vector<AnnotatedSpan> result; in TEST_F()
347 std::vector<AnnotatedSpan> result; in TEST_F()
379 std::vector<AnnotatedSpan> result; in TEST_F()
390 std::vector<AnnotatedSpan> result; in TEST_F()
407 std::vector<AnnotatedSpan> result; in TEST_F()
[all …]
Dnumber.h62 std::vector<AnnotatedSpan>* result) const;
74 std::vector<AnnotatedSpan>* result) const;
110 AnnotatedSpan CreateAnnotatedSpan(int start, int end, int int_value,
Dnumber.cc40 std::vector<AnnotatedSpan> results; in ClassifyText()
45 for (const AnnotatedSpan& result : results) { in ClassifyText()
219 std::vector<AnnotatedSpan>* result) const { in FindAll()
278 AnnotatedSpan NumberAnnotator::CreateAnnotatedSpan( in CreateAnnotatedSpan()
287 AnnotatedSpan annotated_span; in CreateAnnotatedSpan()
/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl_test.cc110 std::vector<AnnotatedSpan> annotations; in TEST_F()
117 std::vector<AnnotatedSpan> annotations; in TEST_F()
133 std::vector<AnnotatedSpan> annotations; in TEST_F()
194 std::vector<AnnotatedSpan> annotations; in TEST_F()
242 std::vector<AnnotatedSpan> annotations; in TEST_F()
267 std::vector<AnnotatedSpan> annotations; in TEST_F()
288 std::vector<AnnotatedSpan> annotations; in TEST_F()
301 std::vector<AnnotatedSpan> annotations; in TEST_F()
322 std::vector<AnnotatedSpan> annotations; in TEST_F()
338 std::vector<AnnotatedSpan> annotations; in TEST_F()
[all …]
Dpod-ner-impl.h41 std::vector<AnnotatedSpan> *results) const;
47 AnnotatedSpan *result) const;
72 std::vector<AnnotatedSpan> *results) const;
Dutils_test.cc111 std::vector<AnnotatedSpan> annotations; in TEST_P()
142 std::vector<AnnotatedSpan> annotations; in TEST_P()
168 std::vector<AnnotatedSpan> annotations; in TEST_P()
216 std::vector<AnnotatedSpan> annotations; in TEST_P()
259 std::vector<AnnotatedSpan> annotations; in TEST()
273 std::vector<AnnotatedSpan> annotations; in TEST_P()
301 std::vector<AnnotatedSpan> annotations; in TEST_P()
330 std::vector<AnnotatedSpan> annotations; in TEST_P()
359 std::vector<AnnotatedSpan> annotations; in TEST_P()
387 std::vector<AnnotatedSpan> annotations; in TEST_P()
[all …]
Dutils.cc222 std::vector<AnnotatedSpan> *results) { in ConvertTagsToAnnotatedSpans()
223 AnnotatedSpan current_span; in ConvertTagsToAnnotatedSpans()
262 results->push_back(AnnotatedSpan{ in ConvertTagsToAnnotatedSpans()
332 std::vector<AnnotatedSpan> *results) { in ConvertTagsToAnnotatedSpans()
337 AnnotatedSpan current_span; in ConvertTagsToAnnotatedSpans()
359 results->push_back(AnnotatedSpan{ in ConvertTagsToAnnotatedSpans()
Dpod-ner-impl.cc391 std::vector<AnnotatedSpan> *results) const { in Annotate()
398 std::vector<AnnotatedSpan> *results) const { in AnnotateAroundSpanOfInterest()
463 AnnotatedSpan *result) const { in SuggestSelection()
465 std::vector<AnnotatedSpan> annotations; in SuggestSelection()
473 for (const AnnotatedSpan &annotation : annotations) { in SuggestSelection()
494 std::vector<AnnotatedSpan> annotations; in ClassifyText()
499 for (const AnnotatedSpan &annotation : annotations) { in ClassifyText()
Dutils.h91 std::vector<AnnotatedSpan> *results);
105 std::vector<AnnotatedSpan> *results);
/external/libtextclassifier/native/annotator/experimental/
Dexperimental-dummy.h41 std::vector<AnnotatedSpan>* candidates) const { in Annotate()
45 AnnotatedSpan SuggestSelection(const UnicodeText& context, in SuggestSelection()
51 std::vector<AnnotatedSpan>& candidates) const { in ClassifyText()
/external/libtextclassifier/native/annotator/
Dannotator.h215 std::vector<AnnotatedSpan> Annotate(
265 bool ResolveConflicts(const std::vector<AnnotatedSpan>& candidates,
278 const std::vector<AnnotatedSpan>& candidates,
292 std::vector<AnnotatedSpan>* result) const;
357 std::vector<AnnotatedSpan>* result) const;
398 std::vector<AnnotatedSpan>* result) const;
407 std::vector<AnnotatedSpan>* result) const;
410 bool FilteredForAnnotation(const AnnotatedSpan& span) const;
413 bool FilteredForSelection(const AnnotatedSpan& span) const;
431 std::vector<AnnotatedSpan>* candidates) const;
[all …]
Dannotator.cc740 bool Annotator::FilteredForAnnotation(const AnnotatedSpan& span) const { in FilteredForAnnotation()
753 bool Annotator::FilteredForSelection(const AnnotatedSpan& span) const { in FilteredForSelection()
946 AnnotatedSpan grammar_suggested_span; in SuggestSelection()
954 AnnotatedSpan pod_ner_suggested_span; in SuggestSelection()
972 [](const AnnotatedSpan& a, const AnnotatedSpan& b) { in SuggestSelection()
1035 int FirstNonOverlappingSpanIndex(const std::vector<AnnotatedSpan>& candidates, in FirstNonOverlappingSpanIndex()
1053 const std::vector<AnnotatedSpan>& candidates, const std::string& context, in ResolveConflicts()
1093 const AnnotatedSpan::Source source1, in DoSourcesConflict()
1094 const AnnotatedSpan::Source source2) { in DoSourcesConflict()
1108 (1 << static_cast<int>(AnnotatedSpan::Source::DURATION))) && in DoSourcesConflict()
[all …]
Dtypes.h649 struct AnnotatedSpan { struct
661 AnnotatedSpan() = default; argument
663 AnnotatedSpan(CodepointSpan arg_span, in AnnotatedSpan() argument
667 AnnotatedSpan(CodepointSpan arg_span, in AnnotatedSpan() function
679 std::vector<std::vector<AnnotatedSpan>> annotated_spans;
687 std::vector<std::vector<AnnotatedSpan>> arg_annotated_spans) in Annotations()
690 Annotations(std::vector<std::vector<AnnotatedSpan>> arg_annotated_spans, in Annotations()
708 const AnnotatedSpan& span);
Dannotator_test-include.cc60 void ExpectFirstEntityIsMoney(const std::vector<AnnotatedSpan>& result, in ExpectFirstEntityIsMoney()
529 const std::vector<AnnotatedSpan> results = in TEST_F()
547 const std::vector<AnnotatedSpan> results = in TEST_F()
1344 const std::vector<AnnotatedSpan> annotations = in VerifyDurationAndRelativeTimeCanOverlapInRawMode()
1419 const std::vector<AnnotatedSpan>& annotated_spans = in TEST_F()
1446 const std::vector<AnnotatedSpan>& annotated_spans = in TEST_F()
1792 const std::vector<AnnotatedSpan> spans = in TEST_F()
1889 std::vector<AnnotatedSpan> candidates{ in TEST_F()
1905 std::vector<AnnotatedSpan> candidates{{ in TEST_F()
1926 std::vector<AnnotatedSpan> candidates{{ in TEST_F()
[all …]
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.h45 std::vector<AnnotatedSpan>* result) const;
57 AnnotatedSpan* result) const;
71 AnnotatedSpan* result) const;
Dgrammar-annotator_test.cc68 std::vector<AnnotatedSpan> result; in TEST_F()
111 std::vector<AnnotatedSpan> result; in TEST_F()
154 std::vector<AnnotatedSpan> result; in TEST_F()
341 AnnotatedSpan selection; in TEST_F()
379 std::vector<AnnotatedSpan> result; in TEST_F()
437 std::vector<AnnotatedSpan> result; in TEST_F()
505 std::vector<AnnotatedSpan> result; in TEST_F()
512 AnnotatedSpan selection; in TEST_F()
Dgrammar-annotator.cc119 AnnotatedSpan* result) const { in InstantiateAnnotatedSpanFromDerivation()
203 std::vector<AnnotatedSpan>* result) const { in Annotate()
230 AnnotatedSpan* result) const { in SuggestSelection()
/external/libtextclassifier/native/utils/testing/
Dannotator.h77 AnnotatedSpan MakeAnnotatedSpan(
79 AnnotatedSpan::Source source = AnnotatedSpan::Source::OTHER);
Dannotator.cc195 AnnotatedSpan MakeAnnotatedSpan(CodepointSpan span, in MakeAnnotatedSpan()
198 AnnotatedSpan::Source source) { in MakeAnnotatedSpan()
199 AnnotatedSpan result; in MakeAnnotatedSpan()
/external/libtextclassifier/jni/com/google/android/textclassifier/
DAnnotatorModel.java228 public AnnotatedSpan[] annotate(String text, AnnotationOptions options) { in annotate()
506 public static final class AnnotatedSpan { class in AnnotatorModel
511 AnnotatedSpan(int startIndex, int endIndex, ClassificationResult[] classification) { in AnnotatedSpan() method in AnnotatorModel.AnnotatedSpan
535 private final AnnotatedSpan[][] annotatedSpans;
538 Annotations(AnnotatedSpan[][] annotatedSpans, ClassificationResult[] topicalityResults) { in Annotations()
543 public AnnotatedSpan[][] getAnnotatedSpans() { in getAnnotatedSpans()
1238 private native AnnotatedSpan[] nativeAnnotate( in nativeAnnotate()
/external/libtextclassifier/native/annotator/vocab/
Dvocab-annotator-impl.cc63 bool trigger_on_beginner_words, std::vector<AnnotatedSpan>* results) const { in Annotate()
72 results->push_back(AnnotatedSpan{stripped_span, {classification_result}}); in Annotate()
/external/libtextclassifier/native/actions/
Dactions-suggestions_test.cc153 AnnotatedSpan annotation; in TEST_F()
198 AnnotatedSpan annotation; in TEST_F()
255 AnnotatedSpan annotation; in TEST_F()
281 AnnotatedSpan flight_annotation; in TEST_F()
284 AnnotatedSpan flight_annotation2; in TEST_F()
287 AnnotatedSpan email_annotation; in TEST_F()
322 AnnotatedSpan flight_annotation; in TEST_F()
325 AnnotatedSpan flight_annotation2; in TEST_F()
328 AnnotatedSpan email_annotation; in TEST_F()
373 AnnotatedSpan flight_annotation; in TestSuggestActionsFromAnnotations()
[all …]

12