2012-06-18 77 views

回答

0

假设您已经下载并解压缩以下文件:

wget http://spotlight.dbpedia.org/download/release-0.5/context-index-compact.tgz 
tar zxvf context-index-compact.tgz 
wget http://spotlight.dbpedia.org/download/release-0.4/surface_forms-Wikipedia-TitRedDis.uriThresh75.tsv.spotterDictionary.gz 
gunzip surface_forms-Wikipedia-TitRedDis.uriThresh75.tsv.spotterDictionary.gz 

现在你只需要改变server.properties文件来指向你的解压后的文件:

org.dbpedia.spotlight.index.dir = index-withSF-withTypes-compressed 
org.dbpedia.spotlight.spot.dictionary = surface_forms-Wikipedia-TitRedDis.uriThresh75.tsv.spotterDictionary 

如果您正在使用最大的spotter字典,您可能需要增加java堆空间 - 例如-Xmx10G在你的命令行中。

+0

非常感谢巴勃罗。 :) 我有兴趣深入了解和了解有关此项目的更多信息 Dbpedia Spotlight。我提到官方dbpedia网站上的文档,并且正在寻找技术实现。 – learner