SVM training for OCR