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.
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
- Text embedding model
- Text normalisation
- TF-IDF
- Token
- Token ID
- Tokenisation
- Tokenizer fertility
- Topic modelling
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.