Bigrams and Trigrams Explained
Sliding windows over tokens.
Naming the N-Grams
The n in n-gram is just a number. Pick n and you decide how many neighboring words each feature bundles together.
Meet the Bigram
A bigram is an n-gram of size two, every adjacent pair of words. It is the most common upgrade over plain single words. 👍
All lessons in this course
- Why Single Words Lose Meaning
- Bigrams and Trigrams Explained
- N-Gram Features in scikit-learn
- Choosing the Right N-Gram Range