'Using GATE Developer 8.5.1 with ANNIE in Eclipse project
I've installed GATE Developer 8.5.1, and working on a project for NLP in Eclipse,
I use this code to use later tokenizer and gazeetter:
Gate.getCreoleRegister().registerDirectories(
new File(Gate.getPluginsHome(), "ANNIE").toURI().toURL());
But it make a line over it, and show error icon with this message :
the method registerDirectories for type CreoleRegister has deprecated
and when I use addDirectories()
instead, it hints me to use registerDirectories()
??
Also, when I try to get plugins home:
System.out.println(Gate.getPluginsHome());
It prints null
, even I load ANNIE from GATE developer GUI but I cannot find plugin folder in the gate folder which installed in my PC.
Please, any hint will be useful for me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|