A simple preprocessor from text to libsvm format