Searched refs:annotated_spans (Results 1 – 7 of 7) sorted by relevance
/external/libtextclassifier/native/annotator/ |
D | annotator.cc | 877 candidates.annotated_spans.resize(1); in SuggestSelection() 883 &tokens, &candidates.annotated_spans[0])) { in SuggestSelection() 892 &candidates.annotated_spans[0])) { in SuggestSelection() 901 &candidates.annotated_spans[0])) { in SuggestSelection() 916 &candidates.annotated_spans[0])) { in SuggestSelection() 922 &candidates.annotated_spans[0])) { in SuggestSelection() 928 &candidates.annotated_spans[0])) { in SuggestSelection() 935 &candidates.annotated_spans[0])) { in SuggestSelection() 941 &candidates.annotated_spans[0])) { in SuggestSelection() 951 candidates.annotated_spans[0].push_back(grammar_suggested_span); in SuggestSelection() [all …]
|
D | annotator_jni.cc | 811 ScopedLocalRef<jobjectArray> annotated_spans, in TC3_JNI_METHOD() 815 fragment_index < annotations.annotated_spans.size(); ++fragment_index) { in TC3_JNI_METHOD() 819 env, annotations.annotated_spans[fragment_index].size(), in TC3_JNI_METHOD() 822 annotation_index < annotations.annotated_spans[fragment_index].size(); in TC3_JNI_METHOD() 826 annotations.annotated_spans[fragment_index][annotation_index].span); in TC3_JNI_METHOD() 831 annotations.annotated_spans[fragment_index][annotation_index] in TC3_JNI_METHOD() 848 if (!JniHelper::SetObjectArrayElement(env, annotated_spans.get(), in TC3_JNI_METHOD() 864 annotations_class_constructor, annotated_spans.get(), in TC3_JNI_METHOD()
|
D | types.h | 679 std::vector<std::vector<AnnotatedSpan>> annotated_spans; member 688 : annotated_spans(std::move(arg_annotated_spans)) {} in Annotations() 692 : annotated_spans(std::move(arg_annotated_spans)), in Annotations()
|
D | annotator_test-include.cc | 1419 const std::vector<AnnotatedSpan>& annotated_spans = in TEST_F() local 1421 EXPECT_THAT(annotated_spans, in TEST_F() 1446 const std::vector<AnnotatedSpan>& annotated_spans = in TEST_F() local 1452 EXPECT_THAT(annotated_spans.size(), 1); in TEST_F() 2866 ASSERT_EQ(annotations.annotated_spans.size(), 2); in TEST_F() 2867 EXPECT_THAT(annotations.annotated_spans[0], in TEST_F() 2869 EXPECT_THAT(annotations.annotated_spans[1], in TEST_F() 2891 ASSERT_EQ(annotations.annotated_spans.size(), 2); in VerifyInputFragmentTimestampOverridesAnnotationOptions() 2892 EXPECT_THAT(annotations.annotated_spans[0], in VerifyInputFragmentTimestampOverridesAnnotationOptions() 2896 EXPECT_THAT(annotations.annotated_spans[1], in VerifyInputFragmentTimestampOverridesAnnotationOptions() [all …]
|
D | annotator.h | 471 std::vector<AnnotatedSpan>* annotated_spans) const;
|
/external/libtextclassifier/native/utils/ |
D | lua-utils.cc | 431 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()
|
D | lua-utils.h | 346 void PushAnnotatedSpans(const std::vector<AnnotatedSpan>* annotated_spans,
|