Библиотека 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

как сказано здесь

почему я все еще получаю ошибку?

Спасибо


person guroosh    schedule 20.02.2019    source источник


Ответы (1)


Вы должны зарегистрировать любой плагин, который используете.

Класс

com.jpetrak.gate.stringannotation.extendedgazetteer2.ExtendedGazetteer2

— это ресурс обработки GATE из очень старой версии gateplugin-stringannotation .

Таким образом, кроме ANNIE, вы также должны зарегистрировать каталог этого плагина.

person dedek    schedule 21.02.2019