Home
last modified time | relevance | path

Searched refs:regex_annotator (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.cc66 if (rules_->regex_annotator() != nullptr) { in BuildRegexAnnotators()
69 result.reserve(rules_->regex_annotator()->size()); in BuildRegexAnnotators()
70 for (const RulesSet_::RegexAnnotator* regex_annotator : in BuildRegexAnnotators()
71 *rules_->regex_annotator()) { in BuildRegexAnnotators()
73 {UncompressMakeRegexPattern(unilib_, regex_annotator->pattern(), in BuildRegexAnnotators()
74 regex_annotator->compressed_pattern(), in BuildRegexAnnotators()
77 regex_annotator->nonterminal()}); in BuildRegexAnnotators()
149 for (const RegexAnnotator& regex_annotator : regex_annotators_) { in SortedSymbolsForInput() local
151 regex_annotator.pattern->Matcher(UnicodeText::Substring( in SortedSymbolsForInput()
159 regex_annotator.nonterm, span, /*match_offset=*/ in SortedSymbolsForInput()
/external/libtextclassifier/native/utils/grammar/utils/
Dir.cc448 output->regex_annotator.emplace_back(new RulesSet_::RegexAnnotatorT); in Serialize()
449 output->regex_annotator.back()->compressed_pattern.reset( in Serialize()
452 pattern, output->regex_annotator.back()->compressed_pattern.get()); in Serialize()
453 output->regex_annotator.back()->nonterminal = lhs; in Serialize()
Drules_test.cc146 EXPECT_THAT(frozen_rules.regex_annotator, SizeIs(2)); in TEST()
/external/libtextclassifier/native/utils/grammar/
Drules.fbs198 regex_annotator:[RulesSet_.RegexAnnotator];