Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/
Dtoken-feature-extractor.cc76 regex_patterns_.push_back(std::unique_ptr<UniLib::RegexPattern>( in TokenFeatureExtractor()
140 if (!regex_patterns_.empty()) { in ExtractDenseFeatures()
143 for (int i = 0; i < regex_patterns_.size(); ++i) { in ExtractDenseFeatures()
144 if (!regex_patterns_[i].get()) { in ExtractDenseFeatures()
148 auto matcher = regex_patterns_[i]->Matcher(token_unicode); in ExtractDenseFeatures()
Dtoken-feature-extractor.h91 feature_count += regex_patterns_.size(); in DenseFeaturesCount()
109 std::vector<std::unique_ptr<UniLib::RegexPattern>> regex_patterns_; variable
/external/libtextclassifier/annotator/
Dannotator.h494 std::vector<CompiledRegexPattern> regex_patterns_; variable
Dannotator.cc490 regex_patterns_.push_back({ in InitializeRegexModel()
1370 const CompiledRegexPattern& regex_pattern = regex_patterns_[pattern_id]; in RegexClassifyText()
2028 const CompiledRegexPattern& regex_pattern = regex_patterns_[pattern_id]; in RegexChunk()