有谁知道这一行代码“r.exec("C:/Users/May/Desktop/test/c5.0 -f C:/Users/May/Desktop/test/see5/rating")”的确切用途是什么

Does any one know exactly what's the utility of this line code " r.exec("C:/Users/May/Desktop/test/c5.0 -f C:/Users/May/Desktop/test/see5/rating") "

这是线路代码:

r.exec("C:/Users/May/Desktop/test/c5.0 -f C:/Users/May/Desktop/test/see5/rating");

问题是我不明白这个项目的含义,因为我分叉了这个项目,我必须改变它以满足我的需要。请问有人能帮帮我吗?

好像是在调用外部程序

C:/Users/May/Desktop/test/c5.0

你需要找出那是什么。

它说 "I'm not going to do things in Java anymore, and instead run the command line program called c5.0."

具体来说,它希望在 "C:/Users/May/Desktop/test/c5.0" 的文件系统上有一个可执行程序,并且该程序还在 "C:/Users/May/Desktop/test/see5/rating".

的文件系统上接受一些输入

google 搜索表明 C5.0 可能是 data mining routine 称为 RuleQuest(?)。

在您的代码中,r 代表运行时对象

Runtime r = Runtime.getRuntime();

正在使用指定的系统命令调用进程 exec() 方法。

C5.0 是 RuleQuest 研究数据挖掘工具。

调用c5.0的格式为:

c5.0 -f <filestem> [options]

这将使用标识应用程序名称的 -f 选项调用 C5.0

所以 C:/Users/May/Desktop/test/see5/rating 应该是应用程序名称。