【问题标题】:Java library : Gate Creole ResourceInstantiationExceptionJava 库:Gate Creole Resource InstantiationException
【发布时间】:2019-02-20 11:50:24
【问题描述】:

我正在使用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】:

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

    班级

    com.jpetrak.gate.stringannotation.extendedgazetteer2.ExtendedGazetteer2

    是来自 gateplugin-stringannotation 非常旧版本的 GATE 处理资源。

    所以除了ANNIE,你还得注册这个插件的目录。

    【讨论】:

      猜你喜欢
      • 2012-11-14
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多