• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
LLMs | Text Classification
  1. Text Classification

  1. Text Classification
    The goal of the text classification tasks is to assign labels or classes to text.

    Applications of classifying text:
    • sentiment analysis.
    • entities extraction.
    • ...

    Text classification can be used with:
    • representation models: task-sepecific models and embedding models
    • generative models

    There are two types of representation models for text classification:
    • Task-specific models: they are trained for specific tasks (sentiment analysis, ...).
    • Embedding models: they generate embeddings that can be used for text classification tasks, among other tasks.

    These models are created by fine-tuning a base representation models (like BERT).

    Example: task-specific model (sentiment analysis)


    Output:

    We can also perform text classification with generative models, such as OpenAI's GPT models:


© 2025  mtitek