vectorization to svm file