1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-09 11:00:23 +08:00

pass tests & update readme

This commit is contained in:
源文雨
2022-11-30 16:27:07 +08:00
parent 6982ead703
commit 1803c768ee
4 changed files with 56 additions and 60 deletions

View File

@@ -32,9 +32,6 @@ func worker() {
}
func Example_parallelCut() {
// Set the number of goroutines
runtime.GOMAXPROCS(numThreads)
// open file for segmentation
file, err := os.Open("README.md")
if err != nil {
@@ -83,6 +80,7 @@ func Example_parallelCut() {
}
t1 := time.Now()
close(result)
// Write the segments into a file for verify
outputFile, _ := os.OpenFile("parallelCut.log", os.O_CREATE|os.O_WRONLY, 0600)