Written by Martin Sewell on 28 November 2007. libsvmformat formats data for LIBSVM, SVMlight, TinySVM and SVMdark. Usage: libsvmformat inputfilename (outputfilename) Example: input file: 0.497394685 0.029056475 0.574969872 0.335588813 0.150718644 0.990436008 0.178700331 0.227281654 0.419131053 0.283366194 0.344446725 0.022617275 output file: 0.497394685 1:0.029056475 2:0.574969872 3:0.335588813 0.150718644 1:0.990436008 2:0.178700331 3:0.227281654 0.419131053 1:0.283366194 2:0.344446725 3:0.022617275