flâneur — a map of the web's best reading

An Introduction to N-grams: What Are They and Why Do We Need Them? - XRDSXRDS

blog.xrds.acm.org · 868 words · saved by 1 readers

In this post I am going to talk about N-grams, a concept found in Natural Language Processing ( aka NLP). First of all, let’s see what the term ‘N-gram’ means. Turns out that is the simplest bit, an N-gram is simply … Continue reading →

In this post I am going to talk about N-grams, a concept found in Natural Language Processing ( aka NLP). First of all, let’s see what the term ‘N-gram’ means. Turns out that is the simplest bit, an N-gram is simply a sequence of N words. For instance, let us take a look at the following examples. San Francisco (is a 2-gram) The Three Musketeers (is a 3-gram) She stood up slowly (is a 4-gram) Now which of these three N-grams have you seen quite frequently? Probably, “San Francisco” and “The Three Musketeers”. On the other hand, you might not have seen “She stood up slowly” that frequently. Bas

Explore this link on the map →

saved by

related reading