mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-08 18:40:24 +08:00
优化 dict, add fs.File 支持
This commit is contained in:
@@ -36,7 +36,7 @@ func Example_parallelCut() {
|
||||
runtime.GOMAXPROCS(numThreads)
|
||||
|
||||
// Load dictionary
|
||||
segmenter.LoadDictionary("dict.txt")
|
||||
segmenter.LoadDictionaryAt("dict.txt")
|
||||
|
||||
// open file for segmentation
|
||||
file, err := os.Open("README.md")
|
||||
|
||||
Reference in New Issue
Block a user