A seguirPróximo guia
Text Annotation for NER and Classification
IA de linguagem
GUIA de IA de linguagem
A classificação de texto classifica automaticamente trechos de texto em categorias, como marcar um e-mail como spam ou uma avaliação como positiva.
Ouça este guiaNarrado por IA · ~3 min
É uma das tarefas de PNL mais amplamente implantadas porque transforma texto livre confuso em rótulos estruturados nos quais um sistema pode atuar.
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.
Provedores de e-mail filtrando mensagens de spam e phishing da sua caixa de entrada.
Marcas que realizam análises de sentimento em análises de produtos e postagens sociais para avaliar o humor do cliente.
As centrais de suporte encaminham automaticamente os tickets recebidos para a equipe certa com base no conteúdo da mensagem.
Plataformas sociais sinalizando discurso de ódio ou comentários tóxicos para revisão de moderação.
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.
Boletim informativo gratuito
Três histórias verificadas de IA a cada manhã de dia útil, escritas em linguagem simples. Gratuito para sempre, sem anúncios.
Um e-mail a cada dia útil. Cancele a inscrição com um clique. Nunca vendemos ou compartilhamos seu endereço.
Teste você mesmo
Feedback instantâneo sobre cada resposta e um certificado compartilhável com um ID verificável assim que você concluir um curso.
Apoie a educação gratuita em IA. O AI Understanding é uma organização sem fins lucrativos 501(c)(3) — sem anúncios, sem paywall, nunca. Faça uma doação
A classificação de texto classifica automaticamente trechos de texto em categorias, como marcar um e-mail como spam ou uma avaliação como positiva. É uma das tarefas de PNL mais amplamente implantadas porque transforma texto livre confuso em rótulos estruturados nos quais um sistema pode atuar.
The output associates the text with the categories defined by the task.
A classificação multi-rótulos permite que mais de uma categoria se aplique ao mesmo item simultaneamente.
Predicting the majority class can yield high accuracy while missing all rare positives, so category-specific evaluation matters.
Recall é a fração de casos verdadeiros positivos que o sistema identificou corretamente, capturando o quanto perdeu.
A zero-shot model can be pretrained or trained on other tasks; the absence concerns task-specific labeled examples.
Continue aprendendo
Mais guias escolhidos para este tópico
A seguirPróximo guia
Text Annotation for NER and Classification
IA de linguagem