Searched refs:NGramSensitiveModel (Results 1 – 3 of 3) sorted by relevance
63 std::unique_ptr<NGramSensitiveModel> NGramSensitiveModel::Create( in Create()73 return std::unique_ptr<NGramSensitiveModel>( in Create()74 new NGramSensitiveModel(unilib, model, tokenizer)); in Create()77 NGramSensitiveModel::NGramSensitiveModel( in NGramSensitiveModel() function in libtextclassifier3::NGramSensitiveModel92 bool NGramSensitiveModel::IsNGramMatch(const uint32* tokens, size_t num_tokens, in IsNGramMatch()117 uint64 NGramSensitiveModel::GetNumSkipGrams(int num_tokens, in GetNumSkipGrams()144 std::pair<int, int> NGramSensitiveModel::GetFirstTokenMatches( in GetFirstTokenMatches()154 std::pair<bool, float> NGramSensitiveModel::Eval( in Eval()209 std::pair<bool, float> NGramSensitiveModel::EvalConversation( in EvalConversation()
31 class NGramSensitiveModel : public SensitiveTopicModelBase {33 static std::unique_ptr<NGramSensitiveModel> Create(52 explicit NGramSensitiveModel(const UniLib* unilib,
393 sensitive_model_ = NGramSensitiveModel::Create( in ValidateAndInitialize()