n-gram is a method to split words into set of substring elements so that those can be used to match words.


Use the following examples to get your first idea about it. I created two columns so that we could compare the n-grams of two different words side-by-side.

n in n-gram is
Clean Word: (( sentenceOneWords ))
n-grams: (( sentenceOneWordsnGram ))
Clean Word: (( sentenceTwoWords ))
n-grams: (( sentenceTwoWordsnGram ))

Published: by ;

Current Ref:

  • cards/math/n-gram.md