Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Dir.cc280 terminal_rules_sets; in SerializeTerminalRules() local
282 terminal_rules_sets.reserve(2 * shards_.size()); in SerializeTerminalRules()
283 rules_maps.reserve(terminal_rules_sets.size()); in SerializeTerminalRules()
285 terminal_rules_sets.push_back(&shards_[i].terminal_rules); in SerializeTerminalRules()
286 terminal_rules_sets.push_back(&shards_[i].lowercase_terminal_rules); in SerializeTerminalRules()
294 for (int i = 0; i < terminal_rules_sets.size(); i++) { in SerializeTerminalRules()
295 for (const auto& it : *terminal_rules_sets[i]) { in SerializeTerminalRules()
306 std::vector<int> index(terminal_rules_sets.size(), 0); in SerializeTerminalRules()
342 for (int i = 0; i < terminal_rules_sets.size(); i++) { in SerializeTerminalRules()
343 rules_maps[i]->terminal_offsets.resize(terminal_rules_sets[i]->size()); in SerializeTerminalRules()