Home
last modified time | relevance | path

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

/external/libtextclassifier/actions/
Dngram-model.cc63 std::unique_ptr<NGramModel> NGramModel::Create( in Create()
73 return std::unique_ptr<NGramModel>(new NGramModel(model, tokenizer, unilib)); in Create()
76 NGramModel::NGramModel(const NGramLinearRegressionModel* model, in NGramModel() function in libtextclassifier3::NGramModel
90 bool NGramModel::IsNGramMatch(const uint32* tokens, size_t num_tokens, in IsNGramMatch()
114 uint64 NGramModel::GetNumSkipGrams(int num_tokens, int max_ngram_length, in GetNumSkipGrams()
140 std::pair<int, int> NGramModel::GetFirstTokenMatches(uint32 token_hash) const { in GetFirstTokenMatches()
149 bool NGramModel::Eval(const UnicodeText& text, float* score) const { in Eval()
Dngram-model.h29 class NGramModel {
31 static std::unique_ptr<NGramModel> Create(
45 NGramModel(const NGramLinearRegressionModel* model,
Dactions-suggestions.h294 std::unique_ptr<const NGramModel> ngram_model_;
Dactions-suggestions.cc337 ngram_model_ = NGramModel::Create(model_->low_confidence_ngram_model(), in ValidateAndInitialize()