Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/
Dannotator.cc3030 const TokenSpan candidate_span = TokenSpan(click_pos).Expand( in ModelClickContextScoreChunks() local
3032 if (candidate_span.first >= 0 && candidate_span.second <= num_tokens) { in ModelClickContextScoreChunks()
3033 UpdateMax(&chunk_scores, candidate_span, scores[j]); in ModelClickContextScoreChunks()
3081 const TokenSpan candidate_span = {start, end}; in ModelBoundsSensitiveScoreChunks() local
3082 if (score_single_token_spans_as_zero && candidate_span.Size() == 1) { in ModelBoundsSensitiveScoreChunks()
3085 scored_chunks->push_back(ScoredChunk{candidate_span, 0.0f}); in ModelBoundsSensitiveScoreChunks()
3087 candidate_spans.push_back(candidate_span); in ModelBoundsSensitiveScoreChunks()