PDA

View Full Version : linking arff files into one



francy_faraone
04-18-2008, 04:08 AM
I would like to know if in Weka it exists a filter which can link two or more arff files into one single file containing all the data, i.e. I have 2 files containing 5 records each, and I want to link them in a single arff file containing 10 records (5records of the first file+5 records of the second one).

Thanks a lot.

Mark
04-18-2008, 06:32 PM
Hi,

Assuming that the two arff files have the same structure (i.e. the headers declare the same attributes), then you can do this from the command line:

java weka.core.Instances append file1.arff file2.arff

Cheers,
Mark.