(defn weka-feature-reduce [in out]
(sh "java" "-cp" "/Applications/weka-3-7-13/weka.jar"
"weka.filters.supervised.attribute.AttributeSelection"
"-E" "weka.attributeSelection.InfoGainAttributeEval"
"-S" "weka.attributeSelection.Ranker -N 300"
"-i" in "-o" out "-c" "1"))
I have this clojure function to that takes a .csv file and processes it to an .arff file. this fucntion used to work back in the day but currently it gives an error which is;
{:Exit 0, :out "", :err "java.io.IOException: Read unknown nominal value selamfor attribute :training-for (line: 102). Try increasing the size of the memory buffer (-B option) or explicitly specify legal nominal values>with the -L option.\n\tweka.core.converters.CSVLoader.makeInstance(CSVLoader.java:1013)\n\tweka.core.converters.CSVLoader.getNextInstance(CSVLoader.java:839)\n\tweka.core.converters.ConverterUtils$DataSource.hasMoreElements(ConverterUtils.java:375)\n\tweka.filters.Filter.filterFile(Filter.java:1104)\n\tweka.filters.Filter.runFilter(Filter.java:1372)\n\tweka.filters.supervised.attribute.AttributeSelection.main(AttributeSelection.java:614)\n\n\tat weka.core.converters.CSVLoader.makeInstance(CSVLoader.java:1013)\n\tat weka.core.converters.CSVLoader.getNextInstance(CSVLoader.java:839)\n\tat weka.core.converters.ConverterUtils$DataSource.hasMoreElements(ConverterUtils.java:375)\n\tat weka.filters.Filter.filterFile(Filter.java:1104)\n\tat weka.filters.Filter.runFilter(Filter.java:1372)\n\tat weka.filters.supervised.attribute.AttributeSelection.main(AttributeSelection.java:614)\n"}
how can i fix this? thanks in advance. I use mac osx yosemite.