JuliaText / TextAnalysis.jl

Julia package for text analysis
Other
373 stars 95 forks source link

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

Open ValeriiBaidin opened 4 years ago

ValeriiBaidin commented 4 years ago

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

Thank you in advance.

aquatiko commented 4 years ago

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. https://github.com/JuliaText/TextAnalysis.jl/blob/1733f3409ceaedd5ced283e2f999485e8e67cd0c/src/document.jl#L312

gxyd commented 3 years ago

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?