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

继续请教 #15

Open
barrycheng opened this issue Oct 13, 2016 · 5 comments
Open

继续请教 #15

barrycheng opened this issue Oct 13, 2016 · 5 comments
Labels

Comments

@barrycheng
Copy link

上一个老人头的问题,因为我的Solr设置是AND, 老 AND 人头是无法匹配 老人头 | 老人 | 人头的。。。

我想通过stopword来配置,但是发现solr 6.2.1 + hanlp-1.3.1没有加载stopwords.txt!

qq 20161013115651

@hankcs
Copy link
Owner

hankcs commented Oct 13, 2016

lucene有自己的停用词过滤器,hanlp-solr也有xml配置项,实在不知道怎么配置就去看源码吧。

@barrycheng
Copy link
Author

老人头 后面是否还有字好像对分词有影响!

如图

1

2

3

@barrycheng
Copy link
Author

老人头 这是一个品牌,其实是不需要分词的,我要怎么实现这样的需求?求指导。。。

@hankcs
Copy link
Owner

hankcs commented Oct 13, 2016

用自定义词典

@vincentchien
Copy link

建议将自行定义的词典与作者的初始词典分开,如此一来,分词结果才会正确!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants