This commit is contained in:
gotoeasy 2024-08-06 16:34:06 +08:00
parent 7ff30f9057
commit 1d8ceb17f7

View File

@ -15,7 +15,7 @@ var sego *cmn.TokenizerSego
// 初始化装载字典
func init() {
_, filename, _, _ := runtime.Caller(0) // 当前go文件所在路径
dictfile := filepath.Join(filepath.Dir(filename), "dict.txtc")
dictfile := filepath.Join(filepath.Dir(filename), "dict.txt")
sego = cmn.NewTokenizerSego(dictfile)
}