Natural Language Processing · TEE · papers

Q5b · Classification label structures

2024-02-12 · re-exam · recovered AI paper

Previous examination · complete worked answers

Question. Compare binary, multiclass and multilabel supervised text classification with examples. [10 marks]

Answer

TypeAllowed outputExampleTypical output rule
BinaryOne of two labelspositive OR negative reviewOne sigmoid or two-class softmax
MulticlassExactly one of several labelssport OR business OR scienceSoftmax over mutually exclusive classes
MultilabelZero, one or several labelsArticle tagged technology AND financeIndependent sigmoid per label

Multiclass and multilabel differ in whether labels may coexist, not merely in the number of labels. A loss and evaluation measure must match the task.