• Home
  • Raw
  • Download

Lines Matching refs:model_

134   if (model_ == nullptr) {  in ValidateAndInitialize()
140 (model_->triggering_options() != nullptr && in ValidateAndInitialize()
141 (model_->triggering_options()->enabled_modes() & ModeFlag_ANNOTATION)); in ValidateAndInitialize()
143 (model_->triggering_options() != nullptr && in ValidateAndInitialize()
144 (model_->triggering_options()->enabled_modes() & in ValidateAndInitialize()
147 (model_->triggering_options() != nullptr && in ValidateAndInitialize()
148 (model_->triggering_options()->enabled_modes() & ModeFlag_SELECTION)); in ValidateAndInitialize()
152 if (!model_->selection_options()) { in ValidateAndInitialize()
156 if (!model_->selection_feature_options()) { in ValidateAndInitialize()
160 if (!model_->selection_feature_options()->bounds_sensitive_features()) { in ValidateAndInitialize()
164 if (!model_->selection_model()) { in ValidateAndInitialize()
168 selection_executor_ = ModelExecutor::Instance(model_->selection_model()); in ValidateAndInitialize()
174 new FeatureProcessor(model_->selection_feature_options(), unilib_)); in ValidateAndInitialize()
182 if (!model_->classification_options()) { in ValidateAndInitialize()
187 if (!model_->classification_feature_options()) { in ValidateAndInitialize()
192 if (!model_->classification_feature_options() in ValidateAndInitialize()
197 if (!model_->classification_model()) { in ValidateAndInitialize()
203 ModelExecutor::Instance(model_->classification_model()); in ValidateAndInitialize()
210 model_->classification_feature_options(), unilib_)); in ValidateAndInitialize()
217 if (!model_->embedding_model()) { in ValidateAndInitialize()
225 (model_->selection_feature_options()->embedding_size() != in ValidateAndInitialize()
226 model_->classification_feature_options()->embedding_size() || in ValidateAndInitialize()
227 model_->selection_feature_options()->embedding_quantization_bits() != in ValidateAndInitialize()
228 model_->classification_feature_options() in ValidateAndInitialize()
235 model_->embedding_model(), in ValidateAndInitialize()
236 model_->classification_feature_options()->embedding_size(), in ValidateAndInitialize()
237 model_->classification_feature_options() in ValidateAndInitialize()
246 if (model_->regex_model()) { in ValidateAndInitialize()
253 if (model_->datetime_model()) { in ValidateAndInitialize()
254 datetime_parser_ = DatetimeParser::Instance(model_->datetime_model(), in ValidateAndInitialize()
262 if (model_->output_options()) { in ValidateAndInitialize()
263 if (model_->output_options()->filtered_collections_annotation()) { in ValidateAndInitialize()
265 *model_->output_options()->filtered_collections_annotation()) { in ValidateAndInitialize()
269 if (model_->output_options()->filtered_collections_classification()) { in ValidateAndInitialize()
271 *model_->output_options()->filtered_collections_classification()) { in ValidateAndInitialize()
275 if (model_->output_options()->filtered_collections_selection()) { in ValidateAndInitialize()
277 *model_->output_options()->filtered_collections_selection()) { in ValidateAndInitialize()
287 if (!model_->regex_model()->patterns()) { in InitializeRegexModel()
293 for (const auto& regex_pattern : *model_->regex_model()->patterns()) { in InitializeRegexModel()
421 if (!(model_->enabled_modes() & ModeFlag_SELECTION)) { in SuggestSelection()
443 if (model_->snap_whitespace_selections()) { in SuggestSelection()
501 model_->selection_options()->always_classify_suggested_selection() && in SuggestSelection()
652 if (model_->triggering_options() == nullptr || in ModelSuggestSelection()
653 !(model_->triggering_options()->enabled_modes() & ModeFlag_SELECTION)) { in ModelSuggestSelection()
669 model_->selection_options()->symmetry_context_size(); in ModelSuggestSelection()
739 if (model_->selection_options()->strip_unpaired_brackets()) { in ModelSuggestSelection()
757 if (model_->triggering_options() == nullptr || in ModelClassifyText()
758 !(model_->triggering_options()->enabled_modes() & in ModelClassifyText()
840 if (model_->classification_options()->max_num_tokens() > 0 && in ModelClassifyText()
841 model_->classification_options()->max_num_tokens() < in ModelClassifyText()
940 model_->classification_options()->phone_min_num_digits() || in ModelClassifyText()
942 model_->classification_options()->phone_max_num_digits()) { in ModelClassifyText()
951 model_->classification_options()->address_min_num_tokens()) { in ModelClassifyText()
1039 if (!(model_->enabled_modes() & ModeFlag_CLASSIFICATION)) { in ClassifyText()
1098 if (model_->triggering_options() == nullptr || in ModelAnnotate()
1099 !(model_->triggering_options()->enabled_modes() & ModeFlag_ANNOTATION)) { in ModelAnnotate()
1113 (model_->triggering_options() != nullptr in ModelAnnotate()
1114 ? model_->triggering_options()->min_annotate_confidence() in ModelAnnotate()
1208 if (!(model_->enabled_modes() & ModeFlag_ANNOTATION)) { in Annotate()
1386 const int max_batch_size = model_->selection_options()->batch_size(); in ModelClickContextScoreChunks()
1497 const int max_batch_size = model_->selection_options()->batch_size(); in ModelBoundsSensitiveScoreChunks()