Lines Matching refs:AnnotatedSpan

593 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()
901 (1 << static_cast<int>(AnnotatedSpan::Source::KNOWLEDGE)))) { in DoSourcesConflict()
913 const std::vector<AnnotatedSpan>& candidates, in ResolveConflict()
949 std::unordered_map<AnnotatedSpan::Source, SortedIntSet> in ResolveConflict()
1007 std::vector<AnnotatedSpan>* result) const { in ModelSuggestSelection()
1098 AnnotatedSpan candidate; in ModelSuggestSelection()
1512 std::vector<AnnotatedSpan> candidates; in ClassifyText()
1520 candidates.back().source = AnnotatedSpan::Source::KNOWLEDGE; in ClassifyText()
1562 candidates.back().source = AnnotatedSpan::Source::DATETIME; in ClassifyText()
1582 candidates.back().source = AnnotatedSpan::Source::DURATION; in ClassifyText()
1637 std::vector<AnnotatedSpan>* result) const { in ModelAnnotate()
1724 AnnotatedSpan result_span; in ModelAnnotate()
1751 std::vector<AnnotatedSpan>* annotated_spans) const { in RemoveNotEnabledEntityTypes()
1752 for (AnnotatedSpan& annotated_span : *annotated_spans) { in RemoveNotEnabledEntityTypes()
1766 [](const AnnotatedSpan& annotated_span) { in RemoveNotEnabledEntityTypes()
1772 std::vector<AnnotatedSpan> Annotator::Annotate( in Annotate()
1774 std::vector<AnnotatedSpan> candidates; in Annotate()
1872 [](const AnnotatedSpan& a, const AnnotatedSpan& b) { in Annotate()
1884 std::vector<AnnotatedSpan> result; in Annotate()
1886 AnnotatedSpan aggregated_span; in Annotate()
1893 AnnotatedSpan(candidates[i].span, /*arg_classification=*/{}); in Annotate()
1915 for (AnnotatedSpan& annotated_span : result) { in Annotate()
2025 std::vector<AnnotatedSpan>* result, in RegexChunk()
2324 std::vector<AnnotatedSpan>* result) const { in DatetimeChunk()
2337 AnnotatedSpan annotated_span; in DatetimeChunk()
2350 annotated_span.source = AnnotatedSpan::Source::DATETIME; in DatetimeChunk()