AI engineering glossary · NLP embeddings

What is text classification?

Text classification (also called Document classification): Assigning one or more predefined labels to a piece of text, such as spam or not spam, positive or negative, or the topic of an article. It is one of the most common NLP tasks and works with features such as tf-idf or embeddings.

Level: beginnerTopic: NLP embeddings

Text classification: an example

A model labels customer emails as billing, delivery or refund with a tf-idf plus logistic regression pipeline.

Related terms

More NLP embeddings terms

Where you learn it

Text classification 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.