string type attribute in arff

443 views
Skip to first unread message

Sana Amanat

unread,
Apr 11, 2014, 5:44:02 AM4/11/14
to wekamooc...@googlegroups.com
Hi,
 I have to classify "ReutersGrain-train.arff", but when I tried to classify this file from Weka browser,its showed all classifiers as disabled.And in the preprocessing phase it showed "Attribute is neither nominal nor numerical." Although this .arff has these attributes.It created a problem due to "string" data type.

@attribute Text string
@attribute class-att {0,1}

And I filtered it with weka.filters.unsupervised.attribute.Reorder -Rlast,first, and also with StringToWordVector, StringToNominal but could not resolve the problem.

Any suggestion. Thx in advance.

Peter Reutemann

unread,
Apr 14, 2014, 7:56:29 AM4/14/14
to WekaMOOC

String attributes usually have to get preprocessed before classifiers can work with the data. You can use the StringToWordVector filter for this.

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cms.waikato.ac.nz/~fracpete/          Ph. +64 (7) 858-5174

--
You received this message because you are subscribed to the Google Groups "WekaMOOC-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wekamooc-gener...@googlegroups.com.
To post to this group, send email to wekamooc...@googlegroups.com.
Visit this group at http://groups.google.com/group/wekamooc-general.
To view this discussion on the web, visit https://groups.google.com/d/msgid/wekamooc-general/62637a7c-1d52-4856-8af0-cd7b41274a46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

brooke.herbert

unread,
Apr 14, 2014, 2:39:27 PM4/14/14
to wekamooc...@googlegroups.com
Hi Sana,

Adding to Peter's comment, have you tried this filter with the Filtered Classifier using Bayes, which handles the filtering and classification?

Best wishes, Brooke

Sana Amanat

unread,
Apr 16, 2014, 2:42:41 AM4/16/14
to wekamooc...@googlegroups.com, frac...@waikato.ac.nz
thanks , I tried it using Weka's editor, it worked well. now I want to embed this functionality in my original code of c#, where I am using Weka.dll. Can you suggest me some links of its tutorial?
Reply all
Reply to author
Forward
0 new messages