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.cc65 if (rules_->regex_annotator() != nullptr) { in BuildRegexAnnotators()
68 result.reserve(rules_->regex_annotator()->size()); in BuildRegexAnnotators()
69 for (const RulesSet_::RegexAnnotator* regex_annotator : in BuildRegexAnnotators()
70 *rules_->regex_annotator()) { in BuildRegexAnnotators()
72 {UncompressMakeRegexPattern(unilib_, regex_annotator->pattern(), in BuildRegexAnnotators()
73 regex_annotator->compressed_pattern(), in BuildRegexAnnotators()
76 regex_annotator->nonterminal()}); in BuildRegexAnnotators()
148 for (const RegexAnnotator& regex_annotator : regex_annotators_) { in SortedSymbolsForInput() local
150 regex_annotator.pattern->Matcher(UnicodeText::Substring( in SortedSymbolsForInput()
158 regex_annotator.nonterm, span, /*match_offset=*/ in SortedSymbolsForInput()
/external/libtextclassifier/native/utils/grammar/utils/
Dir.cc440 output->regex_annotator.emplace_back(new RulesSet_::RegexAnnotatorT); in Serialize()
441 output->regex_annotator.back()->compressed_pattern.reset( in Serialize()
444 pattern, output->regex_annotator.back()->compressed_pattern.get()); in Serialize()
445 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];