File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
swan-pipeline/src/main/java/de/fraunhofer/iem/swan/util Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -279,12 +279,13 @@ public static String exportInstancesToArff(Instances instances) {
279279
280280 if (SwanPipeline .options .isExportArffData ()) {
281281 // Save arff data.
282-
283282 saver .setInstances (instances );
284283
285-
286284 try {
287- String arffFile = SwanPipeline .options .getOutputDir () + File .separator + "arff-data" + File .separator + instances .relationName () + ".arff" ;
285+
286+ String relationName = instances .relationName ().substring (0 , instances .relationName ().indexOf (":" ));
287+
288+ String arffFile = SwanPipeline .options .getOutputDir () + File .separator + "arff-data" + File .separator + relationName + ".arff" ;
288289 saver .setFile (new File (arffFile ));
289290 saver .writeBatch ();
290291 } catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments