Searched refs:click_pos (Results 1 – 6 of 6) sorted by relevance
/external/libtextclassifier/native/annotator/ |
D | feature-processor.cc | 700 int* click_pos) const { in RetokenizeAndFindClick() 706 only_use_line_with_click, tokens, click_pos); in RetokenizeAndFindClick() 714 std::vector<Token>* tokens, int* click_pos) const { in RetokenizeAndFindClick() 727 if (click_pos == nullptr) { in RetokenizeAndFindClick() 728 click_pos = &local_click_pos; in RetokenizeAndFindClick() 730 *click_pos = FindCenterToken(input_span, *tokens); in RetokenizeAndFindClick() 731 if (*click_pos == kInvalidIndex) { in RetokenizeAndFindClick() 734 *click_pos = internal::CenterTokenFromClick(input_span, *tokens); in RetokenizeAndFindClick() 741 std::vector<Token>* tokens, int* click_pos) { in StripOrPadTokens() argument 743 if (*click_pos + right_context_needed + 1 >= tokens->size()) { in StripOrPadTokens() [all …]
|
D | cached-features.cc | 87 int click_pos, std::vector<float>* output_features) const { in AppendClickContextFeaturesForClick() argument 88 click_pos -= extraction_span_.first; in AppendClickContextFeaturesForClick() 91 /*intended_span=*/TokenSpan(click_pos).Expand(options_->context_size(), in AppendClickContextFeaturesForClick()
|
D | feature-processor.h | 69 std::vector<Token>* tokens, int* click_pos); 151 std::vector<Token>* tokens, int* click_pos) const; 160 std::vector<Token>* tokens, int* click_pos) const;
|
D | cached-features_test.cc | 51 const CachedFeatures& cached_features, int click_pos) { in GetCachedClickContextFeatures() argument 53 cached_features.AppendClickContextFeaturesForClick(click_pos, in GetCachedClickContextFeatures()
|
D | annotator.cc | 1259 int click_pos; in ModelSuggestSelection() local 1266 tokens, &click_pos); in ModelSuggestSelection() 1267 if (click_pos == kInvalidIndex) { in ModelSuggestSelection() 1281 IntersectTokenSpans(TokenSpan(click_pos).Expand( in ModelSuggestSelection() 1471 int click_pos; in ModelClassifyText() local 1476 tokens, &click_pos); in ModelClassifyText() 1506 if (click_pos == kInvalidIndex) { in ModelClassifyText() 1514 extraction_span = TokenSpan(click_pos).Expand( in ModelClassifyText() 1543 cached_features->AppendClickContextFeaturesForClick(click_pos, &features); in ModelClassifyText() 2995 for (int click_pos = batch_start; click_pos < batch_end; ++click_pos) { in ModelClickContextScoreChunks() local [all …]
|
D | cached-features.h | 42 int click_pos, std::vector<float>* output_features) const;
|