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

ngrams(sd, 2, 3) doesn't work #201

Open
ValeriiBaidin opened this issue Mar 17, 2020 · 2 comments
Open

ngrams(sd, 2, 3) doesn't work #201

ValeriiBaidin opened this issue Mar 17, 2020 · 2 comments

Comments

@ValeriiBaidin
Copy link

The documentation says about function ngrams(sd, 2, 3), but unfortunately, it doesn't exist.

Thank you in advance.

@aquatiko
Copy link
Contributor

There seems to be something defined for this in the APIs to handle this kind of input and use-case. But something seems wrong as it isn't working. Needs more debugging.

ngrams(d::AbstractDocument, n::Integer...) = ngramize(language(d), tokens(d), n...)

@gxyd
Copy link
Contributor

gxyd commented Nov 16, 2020

I think this seems to be working, or do we need to document a little more of the meaning of ngrams(sd::AbstractDocument, n::Integer...) in case of passing of multiple integers?

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

No branches or pull requests

3 participants