Hello Armin, you might want to give the SimpleNamedResourceManager a try:
http://code.google.com/p/uimafit/source/browse/trunk/uimaFIT/src/main/java/org/uimafit/util/SimpleNamedResourceManager.java http://code.google.com/p/uimafit/source/browse/trunk/uimaFIT/src/test/java/org/uimafit/factory/ExternalResourceFactoryTest.java#119 It is an alternative ResourceManager that allows you to inject arbitrary instances into UIMA pipelines - to be used in conjunction with uimaFIT. Cheers, -- Richard Am 04.01.2012 um 14:41 schrieb [email protected]: > > Hi, > > I'd like to instanciate an object, assemble the pipeline, run it, access > the object from in an annotator running in the pipeline, and process the > data in that object after the pipeline has finished processing. Is this > possible? Or asked differently: Are files the only way to put data into > a pipeline and get results out? Using external resources, only class > names are given to an annotator as parameter and the annotator > instanciates the object, which is lost after the annotator finished its > job. > > Regards, > > Armin -- ------------------------------------------------------------------- Richard Eckart de Castilho Technical Lead Ubiquitous Knowledge Processing Lab (UKP-TUD) FB 20 Computer Science Department Technische Universität Darmstadt Hochschulstr. 10, D-64289 Darmstadt, Germany phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117 [email protected] www.ukp.tu-darmstadt.de Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de -------------------------------------------------------------------
