My annotators aren't encompassed within an aggregate AE, but are chained together in a CPE descriptor. Is it possible to define the external resource in the CPE descriptor for the annotators to access, rather than having bundle them into an aggregate in order to share the resource?
On 17 September 2014 12:16, Richard Eckart de Castilho <[email protected]> wrote: > When you have created a description in uimaFIT, call toXML on it to get the > configuration file. Mind that the uimaFIT-generated description may contain > many redundancies, in particular the types might be re-defined multiple > times. > uimaFIT doesn't take care of minimizing the description since that is not > important for its operation. > > Cheers, > > -- Richard > > On 17.09.2014, at 13:00, Johannes Darms <[email protected]> > wrote: > > > Hey James, > > > >> How do I ensure the resource is shared across multiple > >> annotators? Do I give it the same key, name and/or URI? Does it need to > be > >> declared separately and then referenced somehow? > > I'm not sure how to do it with configuration Files. I create and inject > them using UIMAfit [1]. > > > > > > Regards, > > > > Johannes > > > > [1] > https://uima.apache.org/d/uimafit-current/tools.uimafit.book.html#d5e387 > > ----- Original Message ----- > > From: "James Baker" <[email protected]> > > To: [email protected] > > Sent: Wednesday, September 17, 2014 12:20:54 PM > > Subject: Re: Share database connections between annotators > > > > Thanks Johannes, > > > > I've not used External Resources before and the documentation seems to be > > fairly limited. How do I ensure the resource is shared across multiple > > annotators? Do I give it the same key, name and/or URI? Does it need to > be > > declared separately and then referenced somehow? > > > > James > > > > On 17 September 2014 10:57, Johannes Darms < > > [email protected]> wrote: > > > >> Hey James, > >> > >> I don't know if its the best way. I would implement a collection Pool as > >> an External Resources and pass these Resource to the different > Annotators > >> in your AE. > >> > >> Regards, > >> > >> Johannes > >> > >> [1] > >> > https://uima.apache.org/d/uimafit-current/tools.uimafit.book.html#ugr.tools.uimafit.externalresources > >> > >> ----- Original Message ----- > >> From: "James Baker" <[email protected]> > >> To: [email protected] > >> Sent: Wednesday, September 17, 2014 11:33:58 AM > >> Subject: Share database connections between annotators > >> > >> What is the best way of sharing a database connection (in my case, to > >> MongoDB) between annotators? > >> > >> Currently, I instantiate a new database connection for each annotator, > but > >> as my UIMA pipeline now has over 50 annotators (not all of which > connect to > >> the database), I am ending up with a large number of database > connections. > >> Ideally, I'd like to move to a single connection pool that can be > shared by > >> the annotators. The Mongo driver supports connection pooling, but I'm > >> unsure how best to implement in UIMA. > >> > >> Any advice would be appreciated. > >> > >> Thanks, > >> James > >> > >
