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

为什么new IKAnalyzer(true, false, false)第二个参数写成false之后就分不出词了? #2

Open
bolinnn opened this issue May 27, 2018 · 2 comments

Comments

@bolinnn
Copy link

bolinnn commented May 27, 2018

new IKAnalyzer(true, false, false)没结果。
new IKAnalyzer(true, true, false)能分词。

@liqwei
Copy link

liqwei commented Jun 22, 2018

代码错误~
文件,IKTokenFilter.java 做如下修改
删除:

if(useSingle)
return false;

修改:

    if (useSingle && synonymStack.size()>0) {// 输出缓冲区中的同义词语汇单元

@steveDengShuai
Copy link

感觉这样改还是有问题,useSingle:设置是否对英文和数字单字分词 ---这个事实上是没有效果的,不管是设置了true ,还是false。数字单词一直没有被切分(LETTER)。

Repository owner deleted a comment Feb 2, 2024
Repository owner deleted a comment from fede-s Feb 22, 2024
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

3 participants