Searched refs:NGramModel (Results 1 – 4 of 4) sorted by relevance
/external/libtextclassifier/actions/ |
D | ngram-model.cc | 63 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()
|
D | ngram-model.h | 29 class NGramModel { 31 static std::unique_ptr<NGramModel> Create( 45 NGramModel(const NGramLinearRegressionModel* model,
|
D | actions-suggestions.h | 294 std::unique_ptr<const NGramModel> ngram_model_;
|
D | actions-suggestions.cc | 337 ngram_model_ = NGramModel::Create(model_->low_confidence_ngram_model(), in ValidateAndInitialize()
|