Error with Gate.getCreoleRegister().registerDirectories()

[Fermé]
Signaler
-
Messages postés
4761
Date d'inscription
dimanche 12 juin 2011
Statut
Contributeur
Dernière intervention
23 octobre 2020
-
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

Messages postés
4761
Date d'inscription
dimanche 12 juin 2011
Statut
Contributeur
Dernière intervention
23 octobre 2020
1 275
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.