An Introduction to N-grams: What Are They and Why Do We Need Them? - XRDSXRDS
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
saved by
related reading
- Introduction to Large Language Models | Machine Learning | Google for Developersdevelopers.google.com
- Language Modelinglena-voita.github.io
- Home | infini-graminfini-gram.io
- The Illustrated Word2vec – Jay Alammar – Visualizing machine learning one concept at a time.jalammar.github.io
- What Is ChatGPT Doing … and Why Does It Work?-Stephen Wolfram Writingswritings.stephenwolfram.com
- Language Modeling Without Neural Networksnathan.rs
- [2001.04063] ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-trainingarxiv.org
- Can gzip be a language model?nathan.rs
- The Illustrated Word2vec – Jay Alammar – Visualizing machine learning one concept at a time.jalammar.github.io
- A History of Large Language Modelsgregorygundersen.com
- [2112.10508] Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLParxiv.org
- 1301.3781arxiv.org