Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc29 bool IsPredefinedNonterminal(const std::string& nonterminal_name) { in IsPredefinedNonterminal() argument
30 if (nonterminal_name == kStartNonterm || nonterminal_name == kEndNonterm || in IsPredefinedNonterminal()
31 nonterminal_name == kTokenNonterm || nonterminal_name == kDigitsNonterm || in IsPredefinedNonterminal()
32 nonterminal_name == kWordBreakNonterm) { in IsPredefinedNonterminal()
36 if (nonterminal_name == strings::StringPrintf(kNDigitsNonterm, digits)) { in IsPredefinedNonterminal()
140 int Rules::AddNonterminal(const std::string& nonterminal_name) { in AddNonterminal() argument
141 std::string key = nonterminal_name; in AddNonterminal()
162 void Rules::AddAlias(const std::string& nonterminal_name, in AddAlias() argument
165 TC3_CHECK_EQ(nonterminal_alias_.insert_or_assign(alias, nonterminal_name) in AddAlias()
167 nonterminal_name) in AddAlias()
[all …]
Drules.h156 int AddNonterminal(const std::string& nonterminal_name);
165 void BindAnnotation(const std::string& nonterminal_name,
170 void AddAlias(const std::string& nonterminal_name, const std::string& alias);
/external/libtextclassifier/native/utils/grammar/parsing/
Dmatcher_test.cc180 const std::string& nonterminal_name) { in FindNontermForName() argument
183 if (entry->value()->str() == nonterminal_name) { in FindNontermForName()