Java库:Gate Creole ResourceInstantiationException

问题描述 投票:0回答:1

我正在使用GATE库,我收到错误

gate.creole.ResourceInstantiationException: Couldn't get resource data for com.jpetrak.gate.stringannotation.extendedgazetteer2.ExtendedGazetteer2.

You may need first to load the plugin that contains your resource.
For example, to create a gate.creole.tokeniser.DefaultTokeniser
you need first to load the ANNIE plugin.

Go to the menu File->Manage CREOLE plugins or use the method
Gate.getCreoleRegister().registerDirectories(pluginDirectoryURL).

我初始化了我的插件文件夹,并添加了以下行

Gate.getCreoleRegister().registerDirectories(new URL("file:///home/latest/plugins/ANNIE"));

和文件夹ANNIE包含文件cerole.xml

正如告诉here

为什么我仍然得到错误?

谢谢

java gate creole
1个回答
0
投票

您必须注册您正在使用的任何插件。

班级

com.jpetrak.gate.stringannotation.extendedgazetteer2.ExtendedGazetteer2

是一个非常古老的gateplugin-stringannotation版本的GATE处理资源。

所以除了ANNIE之外,你还必须注册这个插件的目录。

© www.soinside.com 2019 - 2024. All rights reserved.