How to import XML files in WEKA

2019-05-10 00:02发布

I want to import a bunch of xml data in weka. Is there a straightforward solution or a tutorial or I have to maually convert it to a csv or arff file format?

标签: xml weka
2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-05-10 00:28

WEKA does not support XML file as input dataset. WEKA allows to start Classifiers and Experiments with the -xml option followed by a filename to retrieve the command line options from the XML file instead of the command line. see this link: https://www.cs.waikato.ac.nz/~ml/weka/xml/index_old.html

查看更多
虎瘦雄心在
3楼-- · 2019-05-10 00:35

There's no straightforward way to load instances into Weka from XML. Your only real options are CSV, arff or a database, so you'll have to write some conversion code. I've used rarff in the past to build arff files using Ruby.

查看更多
登录 后发表回答