Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么自定义词? #5

Closed
guotie opened this issue Jan 17, 2014 · 3 comments
Closed

怎么自定义词? #5

guotie opened this issue Jan 17, 2014 · 3 comments

Comments

@guotie
Copy link

guotie commented Jan 17, 2014

No description provided.

@huichen
Copy link
Owner

huichen commented Jan 17, 2014

使用用户自定义词典,见LoadDictionary函数注释

https://github.com/huichen/sego/blob/master/segmenter.go#L44

@guotie
Copy link
Author

guotie commented Jan 18, 2014

了解。
LoadDictionary的参数定义为files ...string会不会更好?

@huichen
Copy link
Owner

huichen commented Jan 24, 2014

通常这个参数是通过命令行传入的,单字符串会比较方便,比如 命令行参数 -> 悟空引擎 -> sego

@huichen huichen closed this as completed Jan 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants