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

Add configurable stopwords feature #305

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yukiomoto
Copy link

resolve #300

This pr adds a feature that allows users to override the predefined stopwords of Sonic.

The configuration file can include this to configure Sonic's stopwords only to foo and bar.

[channel.search.stopwords]
eng=["foo", "bar"]

I also believe the pr could help #254 and #266 too because you can do this to disable stopwords completely.

[channel.search.stopwords]
eng=[]

@valeriansaliou
Copy link
Owner

Thank you for this PR. Would it be possible to use macros in order to do some codegen on this?

@yukiomoto
Copy link
Author

@valeriansaliou
Thank you for the review. I will try macros.

@yukiomoto
Copy link
Author

Hi, @valeriansaliou
I added a stopwords codegen macro. If I'm misunderstanding something, please let me know. Thank you!

@valeriansaliou
Copy link
Owner

Thank you, will review soon!

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

Successfully merging this pull request may close these issues.

User defined stopwords
2 participants