Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Dir.cc281 std::vector<RulesSet_::Rules_::TerminalRulesMapT*> rules_maps; in SerializeTerminalRules() local
283 rules_maps.reserve(terminal_rules_sets.size()); in SerializeTerminalRules()
291 rules_maps.push_back(rules_shards->at(i)->terminal_rules.get()); in SerializeTerminalRules()
292 rules_maps.push_back(rules_shards->at(i)->lowercase_terminal_rules.get()); in SerializeTerminalRules()
343 rules_maps[i]->terminal_offsets.resize(terminal_rules_sets[i]->size()); in SerializeTerminalRules()
344 rules_maps[i]->max_terminal_length = 0; in SerializeTerminalRules()
345 rules_maps[i]->min_terminal_length = std::numeric_limits<int>::max(); in SerializeTerminalRules()
352 rules_maps[entry.set_index]->min_terminal_length = in SerializeTerminalRules()
353 std::min(rules_maps[entry.set_index]->min_terminal_length, in SerializeTerminalRules()
355 rules_maps[entry.set_index]->max_terminal_length = in SerializeTerminalRules()
[all …]