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 way to use user-defined word (token) scoring function instead of the pre-baked ones. #6

Closed
andrewrosss opened this issue May 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@andrewrosss
Copy link
Owner

andrewrosss commented May 10, 2020

Right now one has to choose between one of:

  • word degree
  • word frequency
  • word degree to frequency ratio
    it would be nice to be able to override that functionality with a custom function/method.

EDIT: One possible option here is to implement nothing, and just document the fact that overriding word_score is an option?

@andrewrosss andrewrosss added the enhancement New feature or request label May 10, 2020
@andrewrosss
Copy link
Owner Author

Closed by #8. This can be achieved by providing a callable as the word_scorer_class argument of Rake.__init__()

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

No branches or pull requests

1 participant