File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
swan-cmd/src/main/java/de/fraunhofer/iem/swan/cli Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11package de .fraunhofer .iem .swan .cli ;
22
33import de .fraunhofer .iem .swan .SwanPipeline ;
4- import de .fraunhofer .iem .swan .model .ModelEvaluator ;
54import org .slf4j .Logger ;
65import org .slf4j .LoggerFactory ;
76
8- import java .io .File ;
97import java .util .ArrayList ;
108import java .util .Arrays ;
119import java .util .List ;
12- import java .util .Objects ;
1310import java .util .concurrent .CancellationException ;
1411
1512/**
@@ -46,15 +43,18 @@ public Integer run(SwanOptions options) throws Exception {
4643
4744 for (String feature : options .getFeatureSet ()) {
4845
49- String filepath = File .separator + "dataset" + File .separator + options .getToolkit ().toLowerCase ()
50- + File .separator ;
46+ String filepath = "/dataset/" + options .getToolkit ().toLowerCase () + "/" ;
5147
5248 if (options .getToolkit ().toLowerCase ().contentEquals ("meka" )) {
53- instances .add (fileUtility .getResourceFile (filepath + options .getToolkit ().toLowerCase () + "-" + feature + ".arff" ,
49+
50+ instances .add (fileUtility .getResourceFile (filepath
51+ + options .getToolkit ().toLowerCase () + "-" + feature + ".arff" ,
5452 null ).getAbsolutePath ());
5553 } else {
5654 for (String srm : options .getAllClasses ()) {
57- instances .add (fileUtility .getResourceFile (filepath + feature + File .separator + srm + ".arff" ,
55+
56+ instances .add (fileUtility .getResourceFile (filepath +
57+ feature + "/" + srm + ".arff" ,
5858 null ).getAbsolutePath ());
5959 }
6060 }
You can’t perform that action at this time.
0 commit comments