switch (vectorType)
{
case AbstractTrainSpace.VECTOR_SPARSE:
space = new SparseTrainSpace(hasWeight); break;
case AbstractTrainSpace.VECTOR_STRING:
space = new StringTrainSpace(hasWeight, labelCutoff, featureCutoff); break;
}
space.readInstances(UTInput.createBufferedFileReader(trainFile));
space.build();