Searched refs:regex_annotator (Results 1 – 5 of 5) sorted by relevance
/aosp_15_r20/external/libtextclassifier/native/utils/grammar/parsing/ |
H A D | parser.cc | 66 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()
|
/aosp_15_r20/out/soong/.intermediates/external/libtextclassifier/native/libtextclassifier_fbgen_utils_grammar_rules/gen/utils/grammar/ |
D | rules_generated.h | 1052 …vector<std::unique_ptr<libtextclassifier3::grammar::RulesSet_::RegexAnnotatorT>> regex_annotator{}; 1095 …buffers::Offset<libtextclassifier3::grammar::RulesSet_::RegexAnnotator>> *regex_annotator() const { in regex_annotator() function 1124 verifier.VerifyVector(regex_annotator()) && in Verify() 1125 verifier.VerifyVectorOfTables(regex_annotator()) && in Verify() 1161 …or<flatbuffers::Offset<libtextclassifier3::grammar::RulesSet_::RegexAnnotator>>> regex_annotator) { in add_regex_annotator() 1162 fbb_.AddOffset(RulesSet::VT_REGEX_ANNOTATOR, regex_annotator); in add_regex_annotator() 1192 …<flatbuffers::Offset<libtextclassifier3::grammar::RulesSet_::RegexAnnotator>>> regex_annotator = 0, 1199 builder_.add_regex_annotator(regex_annotator); 1218 …uffers::Offset<libtextclassifier3::grammar::RulesSet_::RegexAnnotator>> *regex_annotator = nullptr, 1226 …notator__ = regex_annotator ? _fbb.CreateVector<flatbuffers::Offset<libtextclassifier3::grammar::R… [all …]
|
/aosp_15_r20/external/libtextclassifier/native/utils/grammar/utils/ |
H A D | ir.cc | 448 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()
|
H A D | rules_test.cc | 146 EXPECT_THAT(frozen_rules.regex_annotator, SizeIs(2)); in TEST()
|
/aosp_15_r20/external/libtextclassifier/native/utils/grammar/ |
H A D | rules.fbs | 198 regex_annotator:[RulesSet_.RegexAnnotator];
|