• Home
  • Raw
  • Download

Lines Matching refs:annotated_spans

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()
958 candidates.annotated_spans[0].push_back(pod_ner_suggested_span); in SuggestSelection()
962 candidates.annotated_spans[0].push_back( in SuggestSelection()
970 std::sort(candidates.annotated_spans[0].begin(), in SuggestSelection()
971 candidates.annotated_spans[0].end(), in SuggestSelection()
977 if (!ResolveConflicts(candidates.annotated_spans[0], context, tokens, in SuggestSelection()
987 candidates.annotated_spans[0][a].classification) > in SuggestSelection()
989 candidates.annotated_spans[0][b].classification); in SuggestSelection()
993 if (SpansOverlap(candidates.annotated_spans[0][i].span, click_indices) && in SuggestSelection()
994 SpansOverlap(candidates.annotated_spans[0][i].span, in SuggestSelection()
998 if (candidates.annotated_spans[0][i].classification.empty() && in SuggestSelection()
1003 candidates.annotated_spans[0][i].span, options, in SuggestSelection()
1006 &candidates.annotated_spans[0][i].classification, in SuggestSelection()
1013 if (FilteredForSelection(candidates.annotated_spans[0][i])) { in SuggestSelection()
1020 if (SpanContains(candidates.annotated_spans[0][i].span, in SuggestSelection()
1022 return candidates.annotated_spans[0][i].span; in SuggestSelection()
2124 std::vector<AnnotatedSpan>* annotated_spans) const { in RemoveNotEnabledEntityTypes()
2125 for (AnnotatedSpan& annotated_span : *annotated_spans) { in RemoveNotEnabledEntityTypes()
2137 annotated_spans->erase( in RemoveNotEnabledEntityTypes()
2138 std::remove_if(annotated_spans->begin(), annotated_spans->end(), in RemoveNotEnabledEntityTypes()
2142 annotated_spans->end()); in RemoveNotEnabledEntityTypes()
2382 annotation_candidates.annotated_spans.resize(string_fragments.size()); in AnnotateStructuredInput()
2407 if (annotation_candidates.annotated_spans.size() != text_to_annotate.size()) { in AnnotateStructuredInput()
2411 << annotation_candidates.annotated_spans.size(); in AnnotateStructuredInput()
2439 &annotation_candidates.annotated_spans[i]); in AnnotateStructuredInput()
2443 &annotation_candidates.annotated_spans[i]); in AnnotateStructuredInput()
2474 return annotations.ValueOrDie().annotated_spans[0]; in Annotate()