Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/
Dannotator.cc3047 const TokenSpan candidate_span = TokenSpan(click_pos).Expand( in ModelClickContextScoreChunks() local
3049 if (candidate_span.first >= 0 && candidate_span.second <= num_tokens) { in ModelClickContextScoreChunks()
3050 UpdateMax(&chunk_scores, candidate_span, scores[j]); in ModelClickContextScoreChunks()
3098 const TokenSpan candidate_span = {start, end}; in ModelBoundsSensitiveScoreChunks() local
3099 if (score_single_token_spans_as_zero && candidate_span.Size() == 1) { in ModelBoundsSensitiveScoreChunks()
3102 scored_chunks->push_back(ScoredChunk{candidate_span, 0.0f}); in ModelBoundsSensitiveScoreChunks()
3104 candidate_spans.push_back(candidate_span); in ModelBoundsSensitiveScoreChunks()