how can i fix this problem ? I tried to train a simple linear VSM classifier
Check the structure of letters_train.
SVM is for continuous and categorical variable analysis, and surely one of your variables (letter) is likely still a character variable. Change it to factor and try again.