A continuaciónSiguiente guía
Text Annotation for NER and Classification
Idioma IA
GUÍA de IA en idiomas
La clasificación de texto clasifica automáticamente fragmentos de texto en categorías, como etiquetar un correo electrónico como spam o una reseña como positiva.
Escuche esta guíaNarrado por IA · ~3 min
It is one of the most widely deployed NLP tasks because it turns messy free text into structured labels a system can act on.
Text classification assigns categories to documents, messages, or other text sequences. Binary classification selects between two labels, such as spam and not spam. Multi-class classification assigns exactly one category from a larger set, while multi-label classification permits several categories for the same example. An article can carry both politics and economy tags without requiring those topics to exclude each other. Sentiment and intent can also be classification targets when the task defines their labels. Representations differ across systems: sparse word-count features and dense learned embeddings are two possibilities. A classifier converts those features into scores associated with the defined labels. Evaluation should match the intended decisions. Accuracy is the fraction of correct predictions, but it can conceal failures on a rare category. If almost every message is ordinary, always predicting ordinary can score highly while missing every relevant spam case. Recall for a designated positive class is true positives divided by all actual positives. Precision instead divides true positives by all predicted positives. In an illustrative evaluation with six true positives and two false positives, precision is six divided by eight, or 75 percent. Those quantities answer different questions. A model can have a useful recall yet flag many irrelevant messages. A further distinction concerns output scores: single-label softmax scores sum to one across mutually exclusive alternatives, whereas a separate sigmoid score for each label permits several labels to score highly together. Neither transformation alone establishes that scores are calibrated estimates of real-world frequency.
Proveedores de correo electrónico que filtran mensajes de spam y phishing de su bandeja de entrada.
Marcas que realizan análisis de sentimiento en reseñas de productos y publicaciones en redes sociales para medir el estado de ánimo de los clientes.
Los mostradores de soporte enrutan automáticamente los tickets entrantes al equipo correcto según el contenido del mensaje.
Plataformas sociales que señalan discursos de odio o comentarios tóxicos para una revisión de moderación.
Label descriptions and examples can make it easier to explore a new classification task, but they do not establish consistent performance across domains. Comparing sparse models, dense encoders, and prompted language models can reveal different accuracy, latency, and maintenance tradeoffs. For operational use, evaluation should include rare classes and the consequences of missed or incorrect labels. Changes in language and input sources can also change those results. Report per-class precision and recall where relevant, and assess output calibration separately from the act of assigning a category.
Boletín gratuito
Tres noticias verificadas sobre IA cada mañana de lunes a viernes, explicadas con claridad. Gratis para siempre y sin anuncios.
Un correo cada día laborable. Date de baja con un clic. Nunca vendemos ni compartimos tu dirección.
Ponte a prueba
Corrección inmediata en cada respuesta y un certificado para compartir, con un ID verificable, cuando apruebas un curso.
Apoya la educación gratuita sobre IA. AI Understanding es una organización sin fines de lucro 501(c)(3): sin anuncios ni muros de pago, nunca. Hacer una donación
La clasificación de texto clasifica automáticamente fragmentos de texto en categorías, como etiquetar un correo electrónico como spam o una reseña como positiva. Es una de las tareas de PNL más implementadas porque convierte texto libre desordenado en etiquetas estructuradas sobre las que el sistema puede actuar.
The output associates the text with the categories defined by the task.
La clasificación de etiquetas múltiples permite aplicar más de una categoría al mismo artículo simultáneamente.
Predicting the majority class can yield high accuracy while missing all rare positives, so category-specific evaluation matters.
La recuperación es la fracción de casos positivos verdaderos que el sistema identificó correctamente, capturando cuánto se perdió.
A zero-shot model can be pretrained or trained on other tasks; the absence concerns task-specific labeled examples.
sigue aprendiendo
Más guías seleccionadas para este tema.
A continuaciónSiguiente guía
Text Annotation for NER and Classification
Idioma IA