0
當我試圖將CSV文件轉換爲ARFF時,出現以下錯誤消息。我該如何解決這個問題?在Java中如何隱藏csv文件到arff中?
---Registering Weka Editors---
Trying to add database driver (JDBC): RmiJdbc.RJDriver - Error, not in CLASSPATH?
Trying to add database driver (JDBC): jdbc.idbDriver - Error, not in CLASSPATH?
Trying to add database driver (JDBC): com.mckoi.JDBCDriver - Error, not in CLASSPATH?
Trying to add database driver (JDBC): org.hsqldb.jdbcDriver - Error, not in CLASSPATH?
Exception in thread "main" java.lang.IllegalArgumentException: Attribute names are not unique! Causes: 'þÿÿÿ' 'á' '°' '=' '$' '$' '$' '$' '$' '$' '$' '$' '$' '$' '-' '$' '$' '$' '* ' '-' '-'
at weka.core.Instances.<init>(Instances.java:252)
at weka.core.converters.CSVLoader.readHeader(CSVLoader.java:979)
at weka.core.converters.CSVLoader.readStructure(CSVLoader.java:610)
at weka.core.converters.CSVLoader.getStructure(CSVLoader.java:595)
at weka.core.converters.CSVLoader.getDataSet(CSVLoader.java:628)
at ConvertToArff.Convert(ConvertToArff.java:22)
at ConvertToArff.main(ConvertToArff.java:35)
我不明白這個問題怎麼能得到兩個upvotes ... – Henry 2014-12-13 09:24:28