Home
last modified time | relevance | path

Searched refs:action_grammar_rules (Results 1 – 2 of 2) sorted by relevance

/external/libtextclassifier/native/actions/
Dgrammar-actions_test.cc68 RulesModel_::GrammarRulesT* action_grammar_rules) const { in SetTokenizerOptions()
69 action_grammar_rules->tokenizer_options.reset(new ActionsTokenizerOptionsT); in SetTokenizerOptions()
70 action_grammar_rules->tokenizer_options->type = TokenizationType_ICU; in SetTokenizerOptions()
71 action_grammar_rules->tokenizer_options->icu_preserve_whitespace_tokens = in SetTokenizerOptions()
77 RulesModel_::GrammarRulesT* action_grammar_rules) const { in AddActionSpec()
78 const int action_id = action_grammar_rules->actions.size(); in AddActionSpec()
79 action_grammar_rules->actions.emplace_back( in AddActionSpec()
82 action_grammar_rules->actions.back().get(); in AddActionSpec()
106 RulesModel_::GrammarRulesT* action_grammar_rules) const { in AddSmartReplySpec()
107 return AddActionSpec("text_reply", response_text, {}, action_grammar_rules); in AddSmartReplySpec()
[all …]
Dactions-suggestions_test.cc1066 RulesModel_::GrammarRulesT* action_grammar_rules = in TEST_F() local
1068 action_grammar_rules->tokenizer_options.reset(new ActionsTokenizerOptionsT); in TEST_F()
1069 action_grammar_rules->tokenizer_options->type = TokenizationType_ICU; in TEST_F()
1070 action_grammar_rules->tokenizer_options->icu_preserve_whitespace_tokens = in TEST_F()
1074 action_grammar_rules->rules.reset(new grammar::RulesSetT); in TEST_F()
1084 action_grammar_rules->rules.get()); in TEST_F()
1085 action_grammar_rules->actions.emplace_back(new RulesModel_::RuleActionSpecT); in TEST_F()
1087 action_grammar_rules->actions.back().get(); in TEST_F()
1093 action_grammar_rules->rule_match.emplace_back( in TEST_F()
1095 action_grammar_rules->rule_match.back()->action_id.push_back(0); in TEST_F()
[all …]