I want to do text classification with weka, the SMO algorithm. I have a train and a test file (Persian language). first I load the train file and choose "string to word vector" in preprocess. And because of choosing that, the class position goes to the start in weka. to solve this problem I choose, (NOM)class in classify menu (unless most of the algorithms would be inactive). Then I choose, "use training set" and then save the model. The problem is after opening the test file, this error occurs: "...class index differ 1!=2". I know this is again because the class column in test files after opening that, goes to the start. I chose "(NOM)class" as like as what I did for train part, but again there is this error. How can I solve this problem?

I've enclosed the sample files.

More Vahideh Torabi's questions See All
Similar questions and discussions