СледваСледващо ръководство
Текстова анотация за NER и класификация
Езиков AI
Език AI РЪКОВОДСТВО
Класификацията на текст автоматично сортира части от текст в категории, като маркиране на имейл като спам или рецензия като положителна.
Чуйте това ръководствоAI-разказан · ~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.
Доставчиците на имейл филтрират нежелана поща и фишинг съобщения от входящата ви кутия.
Марките извършват анализ на настроенията върху рецензии на продукти и социални публикации, за да преценят настроението на клиентите.
Бюрата за поддръжка автоматично насочват входящите билети към правилния екип въз основа на съдържанието на съобщението.
Социални платформи, маркиращи реч на омразата или токсични коментари за модераторски преглед.
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.
Безплатен бюлетин
Три проверени AI истории всяка делнична сутрин, написани на достъпен език. Безплатно завинаги, без реклами.
Един имейл всеки делничен ден. Отписване с едно кликване. Никога не продаваме и не споделяме вашия имейл адрес.
Тествайте себе си
Незабавна обратна връзка за всеки отговор и сертификат за споделяне с подлежащ на проверка идентификационен номер, след като преминете курс.
Подкрепете безплатното AI образование. AI Understanding е 501(c)(3) с нестопанска цел — без реклами, без платен достъп, никога. Направете дарение
Класификацията на текст автоматично сортира части от текст в категории, като маркиране на имейл като спам или рецензия като положителна. Това е една от най-разпространените NLP задачи, тъй като превръща разхвърляния свободен текст в структурирани етикети, върху които системата може да действа.
The output associates the text with the categories defined by the task.
Класификацията с множество етикети позволява едновременното прилагане на повече от една категория към един и същи артикул.
Predicting the majority class can yield high accuracy while missing all rare positives, so category-specific evaluation matters.
Припомнянето е частта от истински положителни случаи, които системата правилно е идентифицирала, улавяйки колко е пропуснала.
A zero-shot model can be pretrained or trained on other tasks; the absence concerns task-specific labeled examples.
Продължавай да учиш
Още ръководства, избрани за тази тема
СледваСледващо ръководство
Текстова анотация за NER и класификация
Езиков AI