Skip to content
BENIBIX Learn

Text Classification

AI🔤 NLP & LanguageLanguage Tasks

Also known as Text Categorization, Document Classification

Sorting text into groups that were picked first, like spam or not spam.

Think of it like

It is like sorting letters into boxes. Each letter goes in the box that fits it.

Example

A help desk gets 5,000 emails a day. A model sorts each one into billing, tech or sales, so it reaches the right team.

Why it matters

Much of the text a business gets needs sorting before anyone can act on it. A model does that in a moment.

Definition

Text classification puts a piece of text into one or more set groups. The groups are chosen first, such as spam or not spam, or billing, tech and sales. A model learns from examples that people have labeled. Then it labels new text by itself. Sentiment analysis and spam filters are both kinds of text classification. It is one of the most common jobs in NLP.
Sorting puts the message in one group from a fixed list. Here, that group is billing.

Common mistake

Picking groups that overlap. If an email could be billing or tech, people label it both ways and confuse the model.

Key takeaways

  1. 1
    Fixed groups. Chosen before the model runs.
  2. 2
    Learn from labels. People label the examples.
  3. 3
    Many kinds. Spam, topic, mood and more.

Compare