• Home
  • Raw
  • Download

Lines Matching refs:options_

168   if (options_->default_collection() < 0 ||  in GetDefaultCollection()
169 options_->collections() == nullptr || in GetDefaultCollection()
170 options_->default_collection() >= options_->collections()->size()) { in GetDefaultCollection()
175 return (*options_->collections())[options_->default_collection()]->str(); in GetDefaultCollection()
185 if (options_->tokenization_type() == in Tokenize()
188 } else if (options_->tokenization_type() == in Tokenize()
190 options_->tokenization_type() == in Tokenize()
196 if (options_->tokenization_type() == in Tokenize()
222 tokens[options_->context_size() - result_begin_token_index]; in LabelToSpan()
226 tokens[options_->context_size() + result_end_token_index]; in LabelToSpan()
276 options_->context_size(); // Click is always in the middle. in SpanToLabel()
277 const int padding = options_->context_size() - options_->max_selection_span(); in SpanToLabel()
301 if (options_->snap_label_span_boundaries_to_containing_tokens()) { in SpanToLabel()
442 if (options_->center_token_selection_method() == in FindCenterToken()
446 } else if (options_->center_token_selection_method() == in FindCenterToken()
450 } else if (options_->center_token_selection_method() == in FindCenterToken()
457 if (!options_->split_tokens_on_selection_boundaries()) { in FindCenterToken()
504 if (options_->ignored_span_boundary_codepoints() != nullptr) { in PrepareIgnoredSpanBoundaryCodepoints()
505 for (const int codepoint : *options_->ignored_span_boundary_codepoints()) { in PrepareIgnoredSpanBoundaryCodepoints()
664 return options_->default_collection(); in CollectionToLabel()
672 return (*options_->collections())[label]->str(); in LabelToCollection()
679 if (options_->collections() != nullptr) { in MakeLabelMaps()
680 for (int i = 0; i < options_->collections()->size(); ++i) { in MakeLabelMaps()
681 collection_to_label_[(*options_->collections())[i]->str()] = i; in MakeLabelMaps()
686 for (int l = 0; l < (options_->max_selection_span() + 1); ++l) { in MakeLabelMaps()
687 for (int r = 0; r < (options_->max_selection_span() + 1); ++r) { in MakeLabelMaps()
688 if (!options_->selection_reduced_output_space() || in MakeLabelMaps()
689 r + l <= options_->max_selection_span()) { in MakeLabelMaps()
716 if (options_->split_tokens_on_selection_boundaries()) { in RetokenizeAndFindClick()
776 if (options_->min_supported_codepoint_ratio() > 0) { in HasEnoughSupportedCodepoints()
779 if (supported_codepoint_ratio < options_->min_supported_codepoint_ratio()) { in HasEnoughSupportedCodepoints()
817 options_, feature_vector_size); in ExtractFeatures()
858 if (!is_whitespace || options_->icu_preserve_whitespace_tokens()) { in ICUTokenize()