You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Text classification is the task of assigning a predefined category (or label) to a piece of text. It is one of the most fundamental and widely used NLP tasks, powering applications from spam filtering to content moderation.
| Type | Description | Example |
|---|---|---|
| Binary | Two classes | Spam vs Not Spam |
| Multi-class | Three or more classes (one label per document) | News category: Sports, Politics, Business, Tech |
| Multi-label | Multiple labels per document | A movie tagged as both "Action" and "Comedy" |
Naive Bayes is a probabilistic classifier based on Bayes' theorem with the "naive" assumption that features are conditionally independent given the class.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.