如何在 WEKA 中导入 XML 文件 [英] How to import XML files in WEKA

查看:36
本文介绍了如何在 WEKA 中导入 XML 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在weka中导入一堆xml数据.是否有简单的解决方案或教程,或者我必须手动将其转换为 csv 或 arff 文件格式?

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.您唯一真正的选择是 CSV、arff 或数据库,因此您必须编写一些转换代码.我过去曾使用 rarff 使用 Ruby 构建 arff 文件.

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.

这篇关于如何在 WEKA 中导入 XML 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆