}
Vector result;
if (line.startsWith(ARFFModel.ARFF_SPARSE)) {
line = line.substring(1, line.length() - 1);
String[] splits = COMMA_PATTERN.split(line);
result = new SparseVector(model.getLabelSize());
for (String split : splits) {
String[] data = SPACE_PATTERN.split(split); // first is index, second is
int idx = Integer.parseInt(data[0]);
result.setQuick(idx, model.getValue(data[1], idx));
}