Home
last modified time | relevance | path

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

/external/libtextclassifier/native/actions/
Dgrammar-actions_test.cc81 RulesModel_::RuleActionSpecT* actions_spec = in AddActionSpec() local
83 actions_spec->action.reset(new ActionSuggestionSpecT); in AddActionSpec()
84 actions_spec->action->response_text = response_text; in AddActionSpec()
85 actions_spec->action->priority_score = 1.0; in AddActionSpec()
86 actions_spec->action->score = 1.0; in AddActionSpec()
87 actions_spec->action->type = type; in AddActionSpec()
90 actions_spec->capturing_group.emplace_back( in AddActionSpec()
92 actions_spec->capturing_group.back()->group_id = annotation.group_id; in AddActionSpec()
93 actions_spec->capturing_group.back()->annotation_name = in AddActionSpec()
95 actions_spec->capturing_group.back()->annotation_type = in AddActionSpec()
[all …]
Dactions-suggestions_test.cc1086 RulesModel_::RuleActionSpecT* actions_spec = in TEST_F() local
1088 actions_spec->action.reset(new ActionSuggestionSpecT); in TEST_F()
1089 actions_spec->action->response_text = "Yes, Satan?"; in TEST_F()
1090 actions_spec->action->priority_score = 1.0; in TEST_F()
1091 actions_spec->action->score = 1.0; in TEST_F()
1092 actions_spec->action->type = "text_reply"; in TEST_F()
1150 RulesModel_::RuleActionSpecT* actions_spec = in TEST_F() local
1152 actions_spec->action.reset(new ActionSuggestionSpecT); in TEST_F()
1153 actions_spec->action->priority_score = 1.0; in TEST_F()
1154 actions_spec->action->score = 1.0; in TEST_F()
[all …]