Home
last modified time | relevance | path

Searched refs:regex_rule (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/native/actions/
Dzlib-utils_test.cc39 model.rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST()
40 model.rules->regex_rule.back()->pattern = kTestPattern1; in TEST()
41 model.rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST()
42 model.rules->regex_rule.back()->pattern = kTestPattern2; in TEST()
43 model.rules->regex_rule.back()->output_pattern = kTestOutputPattern; in TEST()
52 EXPECT_THAT(model.rules->regex_rule, in TEST()
66 compressed_model->rules()->regex_rule()->Get(0)->compressed_pattern(), in TEST()
70 compressed_model->rules()->regex_rule()->Get(1)->compressed_pattern(), in TEST()
74 EXPECT_EQ(model.rules->regex_rule[0]->pattern, kTestPattern1); in TEST()
75 EXPECT_EQ(model.rules->regex_rule[1]->pattern, kTestPattern2); in TEST()
[all …]
Dzlib-utils.cc36 for (int i = 0; i < model->rules->regex_rule.size(); i++) { in CompressActionsModel()
37 RulesModel_::RegexRuleT* rule = model->rules->regex_rule[i].get(); in CompressActionsModel()
45 for (int i = 0; i < model->low_confidence_rules->regex_rule.size(); i++) { in CompressActionsModel()
47 model->low_confidence_rules->regex_rule[i].get(); in CompressActionsModel()
96 for (int i = 0; i < model->rules->regex_rule.size(); i++) { in DecompressActionsModel()
97 RulesModel_::RegexRuleT* rule = model->rules->regex_rule[i].get(); in DecompressActionsModel()
109 for (int i = 0; i < model->low_confidence_rules->regex_rule.size(); i++) { in DecompressActionsModel()
111 model->low_confidence_rules->regex_rule[i].get(); in DecompressActionsModel()
Dactions-suggestions_test.cc604 actions_model->low_confidence_rules->regex_rule.emplace_back( in TEST_F()
606 actions_model->low_confidence_rules->regex_rule.back()->pattern = in TEST_F()
619 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
620 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
646 actions_model->low_confidence_rules->regex_rule.emplace_back( in TEST_F()
648 actions_model->low_confidence_rules->regex_rule.back()->pattern = "hello"; in TEST_F()
649 actions_model->low_confidence_rules->regex_rule.back()->output_pattern = in TEST_F()
680 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
681 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
709 preconditions.low_confidence_rules->regex_rule.emplace_back( in TEST_F()
[all …]
Dregex-actions.cc96 if (rules->regex_rule() == nullptr) { in InitializeRulesModel()
99 for (const RulesModel_::RegexRule* rule : *rules->regex_rule()) { in InitializeRulesModel()
Dactions_model.fbs503 regex_rule:[RulesModel_.RegexRule];
/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc470 for (const int regex_rule : nonterminal.regex_rules) { in Finalize() local
471 rules.AddRegex(nonterminal_ids[i], regex_rules_[regex_rule]); in Finalize()