java - Java 库:Gate Creole ResourceInstantiationException
问题描述
我正在使用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
如这里所说
为什么我仍然收到错误?
谢谢
解决方案
You have to register any plugin you are using.
The class
com.jpetrak.gate.stringannotation.extendedgazetteer2.ExtendedGazetteer2
is a GATE processing resource from a very old version of gateplugin-stringannotation .
So except ANNIE, you have to register the directory of this plugin as well.
推荐阅读
- neo4j - Neo4j Cypher - 创建同态变换
- flutter - 在路线之间移除颤振导航
- sql - 在时态表和 AVERAGE 中成功查询后返回非重复值
- jquery - 在另一个函数中使用来自一个函数的变量
- c# - 即使在实现 INotifyPropertyChanged 之后,DataTemplate 中的字典也不会更新 UI
- ios - SwiftUI:如何在背景中模糊的当前视图顶部弹出一个视图?
- python-3.x - 服务总线未在 Azure 上触发,在本地工作
- angular - Angular Material 反应形式:为每个验证器显示不同的错误消息
- css - 为什么我的媒体查询范围不能正常工作?
- vuejs2 - 带有 flex/grid 包装器的 vue 过渡组项目移动到左上角