error when using arff files with string attributes
Peter Waltman <pwaltman <at> eecs.tufts.edu>
2004-04-02 19:23:08 GMT
when i try to use a classifier on an arff file with a string attributes,
I get the following error:
[pwaltman <at> pwaltman weka]$ java weka.classifiers.trees.j48.J48 -t test.arff
Cannot handle string attributes!
the format of my file is:
<at> relation lgNaive
<at> attribute string_ID string
<at> attribute percentA {1,2,3,4}
<at> attribute percentC {1,2,3,4,5,6,7,8,9,10}
.... more attributes
<at> attribute class {Collagen,Elastin,Silk}
<at> data
NP_892013.1,2,7,4,4,6,5,8,4,9,5,13,15,9,5,4,3,3,2,4,3,2,2,4,4,5,5,4,7,1,3,9,10,1,12,1,10,1,1,2,2,3,7,8,1,7,7,2,1,3,1,3,18,23,7,5,6,6,8,2,4,Collagen
NP_038627.1,1,8,4,4,6,4,9,4,9,6,12,15,6,5,4,3,3,3,7,6,6,4,3,6,6,5,4,9,4,3,2,10,8,17,1,2,1,1,2,3,5,3,3,3,5,12,11,1,3,3,11,18,18,1,16,13,7,22,1,7,Collagen
I have also tried putting the string attribute in double quotes, but
still get the same error. Has something changed in weka's
implementation? The README file says that it's supposed to support
string attributes as a means of identifying the examples. I've done a
seardh of the mailist archive, and see posts from people who have had
similar problems, but can't find any posts explaining how to resolve the
problem.
as for weka version, I'm using weka 3.4
thanks,
Peter Waltman