Searched refs:LhsSet (Results 1 – 5 of 5) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | ir.h | 85 using LhsSet = std::vector<Lhs>; variable 90 std::unordered_map<std::string, LhsSet> terminal_rules; 91 std::unordered_map<std::string, LhsSet> lowercase_terminal_rules; 94 std::unordered_map<Nonterm, LhsSet> unary_rules; 97 std::unordered_map<TwoNonterms, LhsSet, BinaryRuleHasher> binary_rules; 203 std::unordered_map<R, LhsSet, H>* rules) { in AddRule() argument 219 Nonterm AddToSet(const Lhs& lhs, LhsSet* lhs_set);
|
D | ir.cc | 60 bool IsSameLhsSet(const Ir::LhsSet& lhs_set, in IsSameLhsSet() 77 Ir::LhsSet SortedLhsSet(const Ir::LhsSet& lhs_set) { in SortedLhsSet() 78 Ir::LhsSet sorted_lhs = lhs_set; in SortedLhsSet() 91 int AddLhsSet(const Ir::LhsSet& lhs_set, RulesSetT* rules_set) { in AddLhsSet() 92 Ir::LhsSet sorted_lhs = SortedLhsSet(lhs_set); in AddLhsSet() 139 const std::unordered_map<Nonterm, Ir::LhsSet>& unary_rules, in SerializeUnaryRulesShard() 150 const std::unordered_map<TwoNonterms, Ir::LhsSet, BinaryRuleHasher>& in SerializeBinaryRulesShard() argument 174 Nonterm Ir::AddToSet(const Lhs& lhs, LhsSet* lhs_set) { in AddToSet() 272 Ir::LhsSet lhs_set; in SerializeTerminalRules() 279 std::vector<const std::unordered_map<std::string, Ir::LhsSet>*> in SerializeTerminalRules()
|
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | matcher.cc | 156 const RulesSet_::LhsSet* FindTerminalMatches( in FindTerminalMatches() 178 const RulesSet_::LhsSet* FindUnaryRulesMatches(const RulesSet* rules_set, in FindUnaryRulesMatches() 192 const RulesSet_::LhsSet* FindBinaryRulesMatches( in FindBinaryRulesMatches() 271 if (const RulesSet_::LhsSet* lhs_set = in AddTerminal() 287 if (const RulesSet_::LhsSet* lhs_set = FindTerminalMatches( in AddTerminal() 322 const RulesSet_::LhsSet* lhs_set) { in ExecuteLhsSet() 406 if (const RulesSet_::LhsSet* lhs_set = in ProcessPendingSet() 426 if (const RulesSet_::LhsSet* lhs_set = in ProcessPendingSet()
|
D | matcher.h | 104 const RulesSet_::LhsSet* lhs_set);
|
/external/libtextclassifier/native/utils/grammar/ |
D | rules.fbs | 94 table LhsSet { 187 lhs_set:[RulesSet_.LhsSet];
|