How to import XML files into WEKA

I want to import a bunch of xml data into weka. Is there a direct solution or tutorial, or should I convert it to csv or arff file format?

+4
source share
2 answers

There is no easy way to load instances in Weka from XML. Your real options are CSV, arff or a database, so you have to write a conversion code. I used rarff in the past to build arff files using Ruby.

+2
source

WEKA does not support the XML file as an input dataset. CEC allows you to run classifiers and experiments with the -xml option , followed by the file name to extract command-line options from an XML file instead of the command line. see this link: https://www.cs.waikato.ac.nz/~ml/weka/xml/index_old.html.

0
source

Source: https://habr.com/ru/post/1309463/


All Articles