VolgendeVolgende gids
Tekstannotatie voor NER en classificatie
Taal AI
Taal AI-GIDS
Tekstclassificatie sorteert stukjes tekst automatisch in categorieën, zoals het taggen van een e-mail als spam of een recensie als positief.
Luister naar deze gidsAI-verteld · ~3 min
Het is een van de meest gebruikte NLP-taken omdat het rommelige vrije tekst omzet in gestructureerde labels waarop een systeem kan handelen.
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.
E-mailproviders filteren spam- en phishing-berichten uit uw inbox.
Merken voeren sentimentanalyses uit op productrecensies en sociale berichten om de stemming van klanten te peilen.
Supportdesks sturen inkomende tickets automatisch door naar het juiste team op basis van de berichtinhoud.
Sociale platforms die haatzaaiende uitlatingen of giftige opmerkingen markeren voor moderatiebeoordeling.
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.
Gratis nieuwsbrief
Drie verifieerde AI-verhalen elke weekdagmorgen, geschreven in eenvoudig Engels. Gratis voor altijd, geen advertenties.
Eén e-mail elke weekdag. Afmelden met één klik. We verkopen of delen je adres nooit.
Test jezelf
Directe feedback op elke antwoord, en een deelbare certificaat met een verifieerbare ID zodra je een cursus hebt afgerond.
Ondersteun gratis AI-onderwijs. AI Understanding is een 501(c)(3) non-profit — geen advertenties, geen betaalmuur, nooit. Doe een donatie
Tekstclassificatie sorteert stukjes tekst automatisch in categorieën, zoals het taggen van een e-mail als spam of een recensie als positief. Het is een van de meest gebruikte NLP-taken omdat het rommelige vrije tekst omzet in gestructureerde labels waarop het systeem kan reageren.
The output associates the text with the categories defined by the task.
Dankzij de classificatie met meerdere labels kan meer dan één categorie tegelijkertijd op hetzelfde artikel van toepassing zijn.
Predicting the majority class can yield high accuracy while missing all rare positives, so category-specific evaluation matters.
Recall is het deel van de werkelijk positieve gevallen dat het systeem correct heeft geïdentificeerd, waarbij wordt vastgelegd hoeveel gevallen er zijn gemist.
A zero-shot model can be pretrained or trained on other tasks; the absence concerns task-specific labeled examples.
Blijf leren
Er zijn meer handleidingen voor dit onderwerp geselecteerd
VolgendeVolgende gids
Tekstannotatie voor NER en classificatie
Taal AI