GateListener Needs That ANNIE plugin Be Always Loaded
(Doc ID 1550838.1)
Last updated on JANUARY 16, 2020
Applies to:
Oracle Spatial and Graph - Version 11.2.0.3 and laterInformation in this document applies to any platform.
Symptoms
Trying to use the GateListener with GATE receiving error:
"C:\Program Files (x86)\Java\jdk1.6.0_35\bin\java" -classpath .;"C:\Program Files\GATE-5.0\bin\*";"C:\Program Files\GATE-5.0\lib\*" GateListener 12000
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).
We tried adding to gatelistener.java the plugin-loader statement for natural language processing immediately after the Gate.init(); statement :
Gate.getCreoleRegister().registerDirectories(new File("/home/oracle/downloads/GATE/gate-6.0-build3764-BIN/plugins/OpenNLP").toURI().toURL()); as shown in the GATE documentation/forums but this throws a compilation error
./GateListener.java:62: cannot find symbol
symbol : class File
location: class GateListener
File gateHome = gate.getGateHome();
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |