Can a linear SVM only have 2 classes? Can a linear SVM support more than 2 classes for classification?
 A: Yes, support vector machines were originally designed to only support two-class-problems. That is not only true for linear SVMs, but for support vector machines in general. There are ways to work around this, but they usually come as a kind of afterthought. There is an ongoing discussion about the merit of these approaches. If you would like to delve into this discussion, this paper may serve as a starting point.
A: SVMs (linear or otherwise) inherently do binary classification. However, there are various procedures for extending them to multiclass problems. The most common methods involve transforming the problem into a set of binary classification problems, by one of two strategies:


*

*One vs. the rest. For $k$ classes, $k$ binary classifiers are trained. Each determines whether an example belongs to its 'own' class versus any other class. The classifier with the largest output is taken to be the class of the example.

*One vs. one. A binary classifier is trained for each pair of classes. A voting procedure is used to combine the outputs.


More sophisticated methods exist. Search for "multiclass SVM".
