Hi,

I have some driver Code which prepares some stuff, then runs a Pipeline, and 
finally wants to use the results that have been generated in the Pipeline.


As far as i have understood the whole uimafit world, uima is in control the 
LifeCycle of everything that happens within a Pipeline. This lifecycle is 
controlled using the ResourceManager. Data Exchange with the driver application 
is not foreseen. I.e. the following pseudocode cannot work by design:


Graph<V,E> g = new ReadWriteGraph<V,E>();

AnalysisEngineDescription graphMapper = 
createEngineDescription(GraphMapper.class)


SimplePipeline.runPipeline(

    createReaderDescription(TextReader.class, ...),

    // more annotators ...

    graphMapper);


assert(g.vertexSet().isEmpty(), false);


Is that correct? Or am i missing some hidden feature, which does actually 
enable this? The only way to Exchange data with the driver program would be to 
implement some serialization mechanism in the graphMapper  and deserialize it 
after the Pipeline has run.


Best,
Hendrik


PS: this Mailing list or stackoverflow?

Reply via email to