public static void main(String[] args) throws Exception {
String question = "Is the Amazon river longer than the Nile River?";
db c = new db ();
c.configiration(0.0, 0, "non", "CoOccurrenceBasedSelector", "Default", "yes");
c.evaluate(question);
System.out.println("resource : "+c.getResu());
}
# 1 楼答案
我只是为你的答案添加一个小补丁。 如果添加
evaluate
方法调用,则代码正在运行:拉明
# 2 楼答案
DBpedia Spotlight wiki页面将是一个很好的起点
我相信installation页面列出了最流行的使用应用程序的方式(使用jar或设置web服务)
它包括关于using the Java/Scala API与您自己的安装或调用Web服务的说明
需要下载一些额外的数据来运行自己的服务器,以便提供全面服务,这是为自己煮咖啡的好时机