1

我已经安装了 GATE Developer 8.5.1,并在 Eclipse 中为 NLP 开发一个项目,

我使用此代码来使用以后的分词器和地名词典:

  Gate.getCreoleRegister().registerDirectories(
            new File(Gate.getPluginsHome(), "ANNIE").toURI().toURL());

但它在上面划了一条线,并显示带有此消息的错误图标:

CreoleRegister 类型的方法 registerDirectories 已弃用

当我addDirectories()改为使用时,它提示我使用registerDirectories()??

另外,当我尝试将插件带回家时:

System.out.println(Gate.getPluginsHome());      

它会打印null,即使我从 GATE 开发者 GUI 加载 ANNIE,但我无法在安装在我的 PC 中的 Gate 文件夹中找到插件文件夹。

拜托,任何提示都会对我有用。

4

0 回答 0