From cca339b382945abed3db450963dc55c691654285 Mon Sep 17 00:00:00 2001 From: yanyiwu Date: Sun, 22 Sep 2024 18:45:24 +0800 Subject: [PATCH] [api] class Simhasher: default argument supported --- include/simhash/Simhasher.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simhash/Simhasher.hpp b/include/simhash/Simhasher.hpp index 86890a9..238801f 100644 --- a/include/simhash/Simhasher.hpp +++ b/include/simhash/Simhasher.hpp @@ -14,7 +14,7 @@ namespace simhash jenkins _hasher; cppjieba::Jieba _jieba; public: - Simhasher(const string& dictPath, const string& modelPath, const string& idfPath, const string& stopWords): _jieba(dictPath, modelPath, "", idfPath, stopWords) + Simhasher(const string& dictPath = "", const string& modelPath = "", const string& idfPath = "", const string& stopWords = ""): _jieba(dictPath, modelPath, "", idfPath, stopWords) {} ~Simhasher(){};