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

搜索引擎模式無法使用 #22

Closed
aisen0921 opened this issue Jun 20, 2017 · 2 comments
Closed

搜索引擎模式無法使用 #22

aisen0921 opened this issue Jun 20, 2017 · 2 comments

Comments

@aisen0921
Copy link

aisen0921 commented Jun 20, 2017

var cc = segmenter.CutForSearch(this.txtTest.Text); foreach (var r in cc) { Console.WriteLine(r); }
原始
小明碩士畢業於中國科學院計算所,後在日本京都大學深造
輸出為
小明 碩士 畢業 於 中國 科學院 計算 所 , 後 在 日本 京都 大學 深造

跟我看到的範例結果都不一樣
找不到是哪裡出錯?

@anderscui
Copy link
Owner

@aisen0921 等我后面有时间看看,看起来可能是因为繁体中文和简体中文的字典不同。

@anderscui
Copy link
Owner

@aisen0921 这个问题应该是因为使用词典不同导致的,默认词典偏向于简体中文,比如有“京都大学”但没有“京都大學”。建议使用ExtraDicts/dict.txt.big这个词典,用这个文件的内容override默认的dict.txt文件内容。

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