tool to help construct SVM feature vector