-
Notifications
You must be signed in to change notification settings - Fork 6
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
Config issue #15
Comments
The only way I found to change the number of word in the ngram was :
Then you have to call Did not found other way around to change the number of words in keywords |
Following @Facenomore23 comment i'd try - from spacy_ke.util import registry, ngram_selection
@registry.candidate_selection.register("custom")
def ngram_selection(doc: Doc, n=3) -> Iterable[Candidate]:
return ngram_selection(doc, n=2) # or any other logic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
In example:
you cannot run this:
yake.cfg["candidate_selection"] = {"ngram": 3}
because TypeError: unhashable type: 'dict'
The text was updated successfully, but these errors were encountered: