gojieba_goroutine

command module
v0.0.0-...-61272a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GOjieba_goroutine

多协程调用GOjieba分词

简介

  • 支持多协程调用GOjieba分词
  • 核心算法底层由C++实现,GO封装,性能高效。
  • 字典路径可配置,NewJieba(...string)可变形参,当参数为空时使用默认词典(默认路径在GOjieba包内,使用默认词典需要先安装GOjiaba(go get github.com/yanyiwu/gojieba))

用法

go get github.com/yanyiwu/gojieba

run.bat

选项 1 编译运行main.go
选项 2 编译main.go
选项 3 运行main.exe

Benchmark

测试环境
操作系统:win10
内核:4
逻辑处理器:8
测试语料
8个20.2M语料文件
测试结果
-GOjieba: config.json
Loading...  Time-consuming: 2.1719415s
GoRoutineNum: 4
fileNum: 8

D0_tmp_out4 Done     Time-consuming: 7.586548s
D0_tmp_out6 Done     Time-consuming: 7.586548s
D0_tmp_out0 Done     Time-consuming: 7.6664455s
D0_tmp_out2 Done     Time-consuming: 7.7681726s
D0_tmp_out7 Done     Time-consuming: 9.6924108s
D0_tmp_out5 Done     Time-consuming: 9.8260509s
D0_tmp_out1 Done     Time-consuming: 10.0413262s
D0_tmp_out3 Done     Time-consuming: 10.0143987s
ALL Done     Time-consuming: 17.7845665s

Contact

  • Email: blcuxiao@126.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址