Searched refs:kUnassignedNonterm (Results 1 – 10 of 10) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | ir_test.cc | 39 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 …]
|
D | rules.cc | 49 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()
|
D | ir.h | 81 Nonterm nonterminal = kUnassignedNonterm; 123 return (nonterminal != kUnassignedNonterm) ? nonterminal : AddNonterminal(); in DefineNonterminal() 137 return kUnassignedNonterm; in GetNonterminalForName()
|
D | ir.cc | 197 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/ |
D | parser.cc | 105 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()
|
D | parse-tree.h | 80 Nonterm lhs = kUnassignedNonterm;
|
D | matcher.cc | 325 Nonterm prev_lhs = kUnassignedNonterm; in ExecuteLhsSet()
|
D | matcher_test.cc | 187 return kUnassignedNonterm; in FindNontermForName()
|
/external/libtextclassifier/native/utils/grammar/semantics/evaluators/ |
D | span-eval_test.cc | 38 ParseTree derivation(/*lhs=*/kUnassignedNonterm, CodepointSpan{5, 11}, in TEST_F()
|
/external/libtextclassifier/native/utils/grammar/ |
D | types.h | 32 const Nonterm kUnassignedNonterm = 0; variable
|