Home
last modified time | relevance | path

Searched refs:annotated_spans (Results 1 – 7 of 7) sorted by relevance

/external/libtextclassifier/native/annotator/
Dannotator.cc897 candidates.annotated_spans.resize(1); in SuggestSelection()
903 &tokens, &candidates.annotated_spans[0])) { in SuggestSelection()
912 &candidates.annotated_spans[0])) { in SuggestSelection()
921 &candidates.annotated_spans[0])) { in SuggestSelection()
937 &candidates.annotated_spans[0])) { in SuggestSelection()
943 &candidates.annotated_spans[0])) { in SuggestSelection()
950 &candidates.annotated_spans[0])) { in SuggestSelection()
957 ModeFlag_SELECTION, &candidates.annotated_spans[0])) { in SuggestSelection()
963 &candidates.annotated_spans[0])) { in SuggestSelection()
973 candidates.annotated_spans[0].push_back(grammar_suggested_span); in SuggestSelection()
[all …]
Dannotator_jni.cc812 ScopedLocalRef<jobjectArray> annotated_spans, in TC3_JNI_METHOD()
816 fragment_index < annotations.annotated_spans.size(); ++fragment_index) { in TC3_JNI_METHOD()
820 env, annotations.annotated_spans[fragment_index].size(), in TC3_JNI_METHOD()
823 annotation_index < annotations.annotated_spans[fragment_index].size(); in TC3_JNI_METHOD()
827 annotations.annotated_spans[fragment_index][annotation_index].span); in TC3_JNI_METHOD()
832 annotations.annotated_spans[fragment_index][annotation_index] in TC3_JNI_METHOD()
849 if (!JniHelper::SetObjectArrayElement(env, annotated_spans.get(), in TC3_JNI_METHOD()
865 annotations_class_constructor, annotated_spans.get(), in TC3_JNI_METHOD()
Dtypes.h684 std::vector<std::vector<AnnotatedSpan>> annotated_spans; member
693 : annotated_spans(std::move(arg_annotated_spans)) {} in Annotations()
697 : annotated_spans(std::move(arg_annotated_spans)), in Annotations()
Dannotator_test-include.cc1391 const std::vector<AnnotatedSpan>& annotated_spans = in TEST_F() local
1393 EXPECT_THAT(annotated_spans, in TEST_F()
1418 const std::vector<AnnotatedSpan>& annotated_spans = in TEST_F() local
1424 EXPECT_THAT(annotated_spans.size(), 1); in TEST_F()
2838 ASSERT_EQ(annotations.annotated_spans.size(), 2); in TEST_F()
2839 EXPECT_THAT(annotations.annotated_spans[0], in TEST_F()
2841 EXPECT_THAT(annotations.annotated_spans[1], in TEST_F()
2863 ASSERT_EQ(annotations.annotated_spans.size(), 2); in VerifyInputFragmentTimestampOverridesAnnotationOptions()
2864 EXPECT_THAT(annotations.annotated_spans[0], in VerifyInputFragmentTimestampOverridesAnnotationOptions()
2868 EXPECT_THAT(annotations.annotated_spans[1], in VerifyInputFragmentTimestampOverridesAnnotationOptions()
[all …]
Dannotator.h474 std::vector<AnnotatedSpan>* annotated_spans) const;
/external/libtextclassifier/native/utils/
Dlua-utils.cc431 const std::vector<AnnotatedSpan>* annotated_spans, in PushAnnotatedSpans() argument
433 PushIterator(annotated_spans ? annotated_spans->size() : 0, in PushAnnotatedSpans()
434 [this, annotated_spans, entity_data_schema](const int64 index) { in PushAnnotatedSpans()
435 PushAnnotatedSpan(annotated_spans->at(index), in PushAnnotatedSpans()
Dlua-utils.h346 void PushAnnotatedSpans(const std::vector<AnnotatedSpan>* annotated_spans,