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

请问是否能提供一个类似于stopWordDictionaryPath 的配置,来配置同义词 #33

Open
ekoz opened this issue Apr 23, 2018 · 4 comments

Comments

@ekoz
Copy link

ekoz commented Apr 23, 2018

是否能提供一个类似于stopWordDictionaryPath 的配置,来配置同义词 synonymWordDictionaryPath,这样可以不用 solr 自己的同义词

<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
@kevindragon
Copy link

solr提供的同义词功能应该可以满足大部分的需求,@ekoz 你的需求是怎么样的?

@ekoz
Copy link
Author

ekoz commented Nov 19, 2018

solr提供的同义词功能应该可以满足大部分的需求,@ekoz 你的需求是怎么样的?

期望同义词和停顿词都统一由 hanlp 插件提供,如果只提供了停顿词插件,同义词由solr提供,这样大家可能还是会统一使用solr的。真正使用的时候,词类是会提供界面维护的,会做部分增删改查功能。

@hankcs
Copy link
Owner

hankcs commented Nov 24, 2018

感谢反馈,我理解大家需要各种功能的心情。但个人精力有限,无法在周边业务逻辑上分配那么多精力,这点还需要社区的帮助。

@fishfree
Copy link

fishfree commented Aug 26, 2024

+1 pls.
因为我发现solr自带的近义词格式只能是一行2个,否则会有很多问题,而hanlp可以一行多个同义词。
而仅仅依靠hanlp.properties里取消注释CoreSynonymDictionaryDictionaryPath似乎不起作用(CustomDictionaryPath等等似乎都不起作用)。

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

No branches or pull requests

4 participants