AI engineering glossary · NLP embeddings

What is unigram?

Unigram: An n-gram of length one: a single word or character considered by itself, with no context. Unigram counts give word frequencies, and a unigram model assumes each word is independent of its neighbours.

Level: beginnerTopic: NLP embeddings

Unigram: an example

In "to be or not to be" the unigram "to" appears twice.

Related terms

More NLP embeddings terms

Where you learn it

Unigram is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.