Searched refs:grammar_model (Results 1 – 4 of 4) sorted by relevance
46 GrammarModelT grammar_model; in TEST_F() local47 SetTestTokenizerOptions(&grammar_model); in TEST_F()48 grammar_model.rules.reset(new grammar::RulesSetT); in TEST_F()62 AddRuleClassificationResult("flight", ModeFlag_ALL, 1.0, &grammar_model)); in TEST_F()64 grammar_model.rules.get()); in TEST_F()65 flatbuffers::DetachedBuffer serialized_model = PackModel(grammar_model); in TEST_F()82 GrammarModelT grammar_model; in TEST_F() local83 SetTestTokenizerOptions(&grammar_model); in TEST_F()84 grammar_model.rules.reset(new grammar::RulesSetT); in TEST_F()100 AddRuleClassificationResult("flight", ModeFlag_ALL, 1.0, &grammar_model)); in TEST_F()[all …]
1833 unpacked_model->grammar_model.reset(new GrammarModelT); in TEST_F()1834 GrammarModelT* grammar_model = unpacked_model->grammar_model.get(); in TEST_F() local1835 grammar_model->tokenizer_options.reset(new GrammarTokenizerOptionsT); in TEST_F()1836 grammar_model->tokenizer_options->tokenization_type = TokenizationType_ICU; in TEST_F()1837 grammar_model->tokenizer_options->icu_preserve_whitespace_tokens = false; in TEST_F()1838 grammar_model->tokenizer_options->tokenize_on_script_change = true; in TEST_F()1841 grammar_model->rules.reset(new grammar::RulesSetT); in TEST_F()1855 grammar_model->rule_classification_result.emplace_back( in TEST_F()1858 grammar_model->rule_classification_result.back().get(); in TEST_F()1862 grammar_model->rules.get()); in TEST_F()
479 if (model_->grammar_model()) { in ValidateAndInitialize()481 unilib_, model_->grammar_model(), entity_data_builder_.get())); in ValidateAndInitialize()
600 grammar_model:GrammarModel;