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

Analyzers with parameters #53

Closed
osma opened this issue Mar 15, 2018 · 0 comments
Closed

Analyzers with parameters #53

osma opened this issue Mar 15, 2018 · 0 comments
Milestone

Comments

@osma
Copy link
Member

osma commented Mar 15, 2018

Currently we have three analyzers (fi, sv, en) all based on NLTK SnowballStemmer. This leads to duplicated code. Adding more languages would imply adding more analyzers.

We could instead have just one SnowballAnalyzer that takes a language parameter. Then it could be configured like this:

analyzer=snowball(finnish)

or why not

analyzer=snowball(french)

A similar approach would work for libvoikko (#37) which supports several languages:

analyzer=voikko(fi)

The parameter would be passed directly to the algorithm so all languages supported by the stemmers/lemmatizers would be available.

@osma osma modified the milestones: Long term, v0.11 Mar 15, 2018
@osma osma closed this as completed in d2c4df8 Mar 20, 2018
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

1 participant