How to create n gram model in matlab r2017b?

1 view (last 30 days)
Saugata Bose
Saugata Bose on 6 Nov 2018
Answered: loong wang on 20 Dec 2018
As I am practicing NLP tasks in matlab, I am facing questions in regular basis. And the comands differing from versions are making the progress more difficult and push me post the question here.
My question is, is there any command to create n-gram(uni, bi, tri, and as well) of documents? I found a version of bagOfNgrams in Matlab R2018b which I have not found such command in R2017b version?
I appreciate your kind help.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by