Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/utils/
Drules_test.cc231 EXPECT_THAT(frozen_rules.nonterminals->annotation_nt, SizeIs(3)); in TEST()
232 EXPECT_EQ(frozen_rules.nonterminals->annotation_nt[0]->key, "phone"); in TEST()
233 EXPECT_EQ(frozen_rules.nonterminals->annotation_nt[1]->key, in TEST()
235 EXPECT_EQ(frozen_rules.nonterminals->annotation_nt[2]->key, "url"); in TEST()
Dir.cc417 for (const auto& [annotation, annotation_nt] : annotations_) { in Serialize()
418 output->nonterminals->annotation_nt.emplace_back( in Serialize()
420 output->nonterminals->annotation_nt.back()->key = annotation; in Serialize()
421 output->nonterminals->annotation_nt.back()->value = annotation_nt; in Serialize()
423 SortForBinarySearchLookup(&output->nonterminals->annotation_nt); in Serialize()
/external/libtextclassifier/native/actions/
Dgrammar-actions_test.cc609 action_grammar_rules.rules->nonterminals->annotation_nt.emplace_back( in TEST_F()
611 action_grammar_rules.rules->nonterminals->annotation_nt.back()->key = "phone"; in TEST_F()
612 action_grammar_rules.rules->nonterminals->annotation_nt.back()->value = in TEST_F()
Dactions-suggestions.cc330 if (auto annotation_nt = model_->rules() in ValidateAndInitialize() local
334 ->annotation_nt()) { in ValidateAndInitialize()
336 *annotation_nt) { in ValidateAndInitialize()
1086 ->annotation_nt()) in AnnotateConversation()
/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.cc165 if (auto annotation_nonterminals = nonterminals_->annotation_nt()) { in SortedSymbolsForInput()
/external/libtextclassifier/native/utils/grammar/
Drules.fbs148 annotation_nt:[Nonterminals_.AnnotationNtEntry];