JuliaText / TextAnalysis.jl

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

allow multiple ngram complexity in NGramDocument, ngrams and ngrammize #157

Closed tanmaykm closed 5 years ago

tanmaykm commented 5 years ago

Allow NGramDocument to optionally store ngrams of multiple ngram complexity. Updated ngrams and ngramize methods to generate such ngrams. Updated corresponding docs and added tests.

Also corrected show method for NGramDocument.

Ref: #148 and https://github.com/JuliaText/TextAnalysis.jl/pull/148#issuecomment-493399762

tanmaykm commented 5 years ago

rebased to fix conflicts