List<Resource> allInstances = new ArrayList<Resource>(instances);
allInstances.addAll(testInstances);
System.out.println("Computing kernel....");
SparseVector[] fv = kernel.computeFeatureVectors(dataset, allInstances, blackList);
System.out.println("Computing TFIDF....");
fv = TextUtils.computeTFIDF(Arrays.asList(fv)).toArray(new SparseVector[1]);
fv = KernelUtils.normalize(fv);
SparseVector[] trainFV = Arrays.copyOfRange(fv, 0, instances.size());