private List<string> ComputePlateBasedClassification(int Classes, int MinObjectsNumber, cPlate CurrentPlateToProcess) { CurrentPlateToProcess.ComputePlateBasedDescriptors(); weka.core.Instances insts = CurrentPlateToProcess.CreateInstancesWithClassesWithPlateBasedDescriptor(Classes); weka.classifiers.trees.J48 ClassificationModel = new weka.classifiers.trees.J48(); ClassificationModel.setMinNumObj(MinObjectsNumber); weka.core.Instances train = new weka.core.Instances(insts, 0, insts.numInstances()); ClassificationModel.buildClassifier(train); // display the tree string DotString = ClassificationModel.graph().Remove(0, ClassificationModel.graph().IndexOf("{") + 2); int DotLenght = DotString.Length; string NewDotString = DotString.Remove(DotLenght - 3, 3); ComputeAndDisplayGraph(NewDotString); return ComputeGraph(NewDotString, Classes); }