mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
v0.16.0
This commit is contained in:
parent
7ff30f9057
commit
1d8ceb17f7
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user