Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Dir_test.cc39 const Nonterm t1 = ir.Add(kUnassignedNonterm, "the"); in TEST()
42 const Nonterm t2 = ir.Add(kUnassignedNonterm, "quick"); in TEST()
45 const Nonterm t3 = ir.Add(kUnassignedNonterm, "quick"); in TEST()
54 const Nonterm t5 = ir.Add(kUnassignedNonterm, "brown"); in TEST()
61 const Nonterm t7 = ir.Add(kUnassignedNonterm, "brown"); in TEST()
63 EXPECT_THAT(t1, Ne(kUnassignedNonterm)); in TEST()
64 EXPECT_THAT(t2, Ne(kUnassignedNonterm)); in TEST()
67 EXPECT_THAT(t4_unshareable, Ne(kUnassignedNonterm)); in TEST()
70 EXPECT_THAT(t6_unshareable, Ne(kUnassignedNonterm)); in TEST()
83 ir.Add(kUnassignedNonterm, "the"), ir.Add(kUnassignedNonterm, "quick"), in TEST()
[all …]
Drules.cc49 return kUnassignedNonterm; in GetAssignedIdForNonterminal()
64 kUnassignedNonterm) { in IsRhsAssigned()
72 kUnassignedNonterm) { in IsRhsAssigned()
89 TC3_CHECK_NE(callback_param, kUnassignedNonterm); in LowerRule()
106 rhs_nonterms.push_back(ir->Add(Ir::Lhs{kUnassignedNonterm}, in LowerRule()
112 TC3_CHECK_NE(nonterminal_id, kUnassignedNonterm); in LowerRule()
450 if (rules.GetNonterminalForName(nonterminal.name) != kUnassignedNonterm) { in Finalize()
Dir.h81 Nonterm nonterminal = kUnassignedNonterm;
123 return (nonterminal != kUnassignedNonterm) ? nonterminal : AddNonterminal(); in DefineNonterminal()
137 return kUnassignedNonterm; in GetNonterminalForName()
Dir.cc197 if (lhs.nonterminal != kUnassignedNonterm && in AddToSet()
248 prev = Add(kUnassignedNonterm, prev, rhs[i], shard); in Add()
413 output->nonterminals->n_digits_nt.resize(i, kUnassignedNonterm); in Serialize()
/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.cc105 nonterminals_->start_nt() != kUnassignedNonterm) { in SortedSymbolsForInput()
112 if (nonterminals_->wordbreak_nt() != kUnassignedNonterm) { in SortedSymbolsForInput()
127 if (nonterminals_->wordbreak_nt() != kUnassignedNonterm) { in SortedSymbolsForInput()
137 nonterminals_->end_nt() != kUnassignedNonterm) { in SortedSymbolsForInput()
205 if (nonterminals_->digits_nt() != kUnassignedNonterm) { in EmitSymbol()
218 if (n_digits_nt != kUnassignedNonterm) { in EmitSymbol()
Dparse-tree.h80 Nonterm lhs = kUnassignedNonterm;
Dmatcher.cc325 Nonterm prev_lhs = kUnassignedNonterm; in ExecuteLhsSet()
Dmatcher_test.cc187 return kUnassignedNonterm; in FindNontermForName()
/external/libtextclassifier/native/utils/grammar/semantics/evaluators/
Dspan-eval_test.cc38 ParseTree derivation(/*lhs=*/kUnassignedNonterm, CodepointSpan{5, 11}, in TEST_F()
/external/libtextclassifier/native/utils/grammar/
Dtypes.h32 const Nonterm kUnassignedNonterm = 0; variable