N-grams in Minutes

Originally published at: https://tutorials.datasciencedojo.com/n-grams/

In this quick tutorial, we learn that machines can not only make sense of words but also make sense of words in their context. N-grams are one way to help machines understand a word in its context by looking at words in pairs. We go over what n-grams are and some examples of how you could use them in natural language processing. By looking at pairs of words, we capture the broader context of words to then train machines to learn these language queues and gain a better understanding of the real meaning of the text.


Recommended Data Science Material:
[Video] Introduction to Text Analytics in R
[Blog] Natural Language Processing with R Programming Books