Home | History | Annotate | Download | only in libtextclassifier

Lines Matching refs:unpacked_model

115   std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
117 unpacked_model->classification_model.clear();
118 unpacked_model->triggering_options.reset(new ModelTriggeringOptionsT);
119 unpacked_model->triggering_options->enabled_modes = ModeFlag_SELECTION;
122 builder.Finish(Model::Pack(builder, unpacked_model.get()));
136 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
138 unpacked_model->triggering_options.reset(new ModelTriggeringOptionsT);
139 unpacked_model->triggering_options->enabled_modes =
143 builder.Finish(Model::Pack(builder, unpacked_model.get()));
168 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
169 unpacked_model->output_options.reset(new OutputOptionsT);
172 unpacked_model->output_options->filtered_collections_classification.push_back(
176 builder.Finish(Model::Pack(builder, unpacked_model.get()));
213 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
216 unpacked_model->regex_model->patterns.push_back(MakePattern(
219 unpacked_model->regex_model->patterns.push_back(MakePattern(
224 builder.Finish(Model::Pack(builder, unpacked_model.get()));
263 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
266 unpacked_model->regex_model->patterns.push_back(MakePattern(
269 unpacked_model->regex_model->patterns.push_back(MakePattern(
272 unpacked_model->regex_model->patterns.back()->priority_score = 1.1;
275 builder.Finish(Model::Pack(builder, unpacked_model.get()));
297 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
300 unpacked_model->regex_model->patterns.push_back(MakePattern(
303 unpacked_model->regex_model->patterns.push_back(MakePattern(
306 unpacked_model->regex_model->patterns.back()->priority_score = 0.5;
309 builder.Finish(Model::Pack(builder, unpacked_model.get()));
330 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
333 unpacked_model->regex_model->patterns.push_back(MakePattern(
336 unpacked_model->regex_model->patterns.push_back(MakePattern(
339 unpacked_model->regex_model->patterns.back()->priority_score = 1.1;
342 builder.Finish(Model::Pack(builder, unpacked_model.get()));
363 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
366 unpacked_model->regex_model->patterns.push_back(MakePattern(
369 unpacked_model->regex_model->patterns.push_back(MakePattern(
373 builder.Finish(Model::Pack(builder, unpacked_model.get()));
457 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
460 unpacked_model->selection_model.clear();
461 unpacked_model->triggering_options.reset(new ModelTriggeringOptionsT);
462 unpacked_model->triggering_options->enabled_modes = ModeFlag_ANNOTATION;
465 builder.Finish(Model::Pack(builder, unpacked_model.get()));
478 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
481 unpacked_model->selection_model.clear();
482 unpacked_model->triggering_options.reset(new ModelTriggeringOptionsT);
483 unpacked_model->triggering_options->enabled_modes = ModeFlag_CLASSIFICATION;
484 unpacked_model->enabled_modes = ModeFlag_CLASSIFICATION;
487 builder.Finish(Model::Pack(builder, unpacked_model.get()));
519 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
520 unpacked_model->output_options.reset(new OutputOptionsT);
523 unpacked_model->output_options->filtered_collections_selection.push_back(
526 unpacked_model->selection_options->always_classify_suggested_selection = true;
529 builder.Finish(Model::Pack(builder, unpacked_model.get()));
743 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
746 unpacked_model->selection_options->batch_size = 4;
748 builder.Finish(Model::Pack(builder, unpacked_model.get()));
778 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
780 unpacked_model->triggering_options.reset(new ModelTriggeringOptionsT);
782 unpacked_model->triggering_options->min_annotate_confidence =
785 builder.Finish(Model::Pack(builder, unpacked_model.get()));
804 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
807 unpacked_model->triggering_options.reset(new ModelTriggeringOptionsT);
808 unpacked_model->triggering_options->min_annotate_confidence =
810 unpacked_model->triggering_options->enabled_modes = ModeFlag_ALL;
812 builder.Finish(Model::Pack(builder, unpacked_model.get()));
834 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
837 unpacked_model->enabled_modes = ModeFlag_CLASSIFICATION_AND_SELECTION;
839 builder.Finish(Model::Pack(builder, unpacked_model.get()));
874 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
875 unpacked_model->output_options.reset(new OutputOptionsT);
878 unpacked_model->output_options->filtered_collections_annotation.push_back(
882 builder.Finish(Model::Pack(builder, unpacked_model.get()));
921 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
922 unpacked_model->output_options.reset(new OutputOptionsT);
926 unpacked_model->output_options->filtered_collections_annotation.push_back(
929 unpacked_model->regex_model->patterns.push_back(MakePattern(
935 builder.Finish(Model::Pack(builder, unpacked_model.get()));
1038 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
1041 for (int i = 0; i < unpacked_model->datetime_model->patterns.size(); i++) {
1042 unpacked_model->datetime_model->patterns[i]->enabled_modes =
1046 builder.Finish(Model::Pack(builder, unpacked_model.get()));
1218 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
1223 unpacked_model->classification_options->max_num_tokens = -1;
1226 builder.Finish(Model::Pack(builder, unpacked_model.get()));
1237 unpacked_model->classification_options->max_num_tokens = 3;
1240 builder2.Finish(Model::Pack(builder2, unpacked_model.get()));
1256 std::unique_ptr<ModelT> unpacked_model = UnPackModel(test_model.c_str());
1261 unpacked_model->classification_options->address_min_num_tokens = 0;
1264 builder.Finish(Model::Pack(builder, unpacked_model.get()));
1275 unpacked_model->classification_options->address_min_num_tokens = 5;
1278 builder2.Finish(Model::Pack(builder2, unpacked_model.get()));