Error with Gate.getCreoleRegister().registerDirectories()

Fermé
snds - 17 juin 2015 à 14:30
ElementW Messages postés 4814 Date d'inscription dimanche 12 juin 2011 Statut Contributeur Dernière intervention 5 octobre 2021 - 17 juin 2015 à 14:50
Bonjour,

I've been trying to base a program off the Goldfish example, but I
always get a huge stacktrace each time I try to use the above function..
(Gate.getCreoleRegister().registerDirectories())
I've tried it as the example specifies it..

Gate.getCreoleRegister().registerDirectories(new
File(System.getProperty("user.dir")).toURL());
I believe this is the root cause of another of my packages (sheffield.creole.example.GoldFish)
getting the following error:

OBTAINING DOCUMENTS

Loading gate.creole.tokeniser.DefaultTokeniser ... done
  • Loading gate.creole.splitter.SentenceSplitter ... done
  • Loading sheffield.creole.example.GoldFish ... gate.creole.ResourceInstantiationException: Couldn't get resource data for sheffield.creole.example.GoldFish.


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.

1 réponse

ElementW Messages postés 4814 Date d'inscription dimanche 12 juin 2011 Statut Contributeur Dernière intervention 5 octobre 2021 1 228
17 juin 2015 à 14:50
Hi, please note Comment Ca Marche is a french-speaking help forum.
If you want to ask your question in english, you can go to the english version of CCM, although it's not popular.
I recommend posting your question on StackOverflow, you might get very relevant answers to your problem here.
Also, don't forget to use the search field, or your question might get closed as a duplicate if it has already been asked and/or answered.
Thanks.
0