public static void main(String[] args) throws Exception{
		DataSource source = new DataSource("data/trainSample_"+dim+".csv");
		Instances trainData = source.getDataSet();
		trainData.setClassIndex(trainData.numAttributes()-1);
		
		String[] cls = new String[]{"very not sure","not sure","little not sure", "little sure", "sure", "very sure"};
		List<Instances> clsData = new ArrayList<Instances>();
		for(int i=0;i<cls.length;i++){
			clsData.add(new Instances(trainData));
		}
		for(int i=0;i<cls.length;i++){
			clsData.get(i).delete();
		}
		for(int i=0;i<trainData.numInstances();i++){
			Instance ins = trainData.instance(i);
			clsData.get((int)ins.classValue()).add(ins);
		}
		
		List<Classifier> models = new ArrayList<Classifier>();
		List<HashMap<Integer,String>> modelsFlag = new ArrayList<HashMap<Integer,String>>();
		for(int i=0;i<cls.length;i++){
			for(int j=i+1;j<cls.length;j++){
				String modelName = cls[i]+" VS "+cls[j];
				Instances data = new Instances(clsData.get(i));
				Instances dataNeedAdd = new Instances(clsData.get(j));
				for(int k=0;k<dataNeedAdd.numInstances();k++){
					Instance ins = dataNeedAdd.instance(k);
					data.add(ins);
				}
			data.setClassIndex(data.numAttributes()-1);
			Classifier model = doClassify(data);
			models.add(model);
			HashMap<Integer,String> map = new HashMap<Integer,String>();
			map.put(0,cls[i]);
			map.put(1, cls[j]);
			modelsFlag.add(map);
			System.out.println(modelName+" build Classifier success....");
			}	
		}
		
		System.out.println(models.size());
		
		String[] tags = Predict(models,modelsFlag,cls);
		System.out.println(tags);
	}