public class Sparse2SvmConvertor {
public static void convert(String inputFile, String outputFile) throws Exception {
SparseTextFileReader reader = new SparseTextFileReader();
reader.open(inputFile);
SparseTextFileLine line = new SparseTextFileLine();
int count = 0;
PrintStream output = new PrintStream(new File(outputFile));
StringBuilder sb = new StringBuilder();
int featureCount = 0;
while (reader.loadNextLine(line)) {