uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hendrik L├╝cke-Tieke <h...@outlook.com>
Subject uimafit and access to java objects from the driver code
Date Mon, 20 Feb 2017 13:59:13 GMT

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)


    createReaderDescription(TextReader.class, ...),

    // more annotators ...


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.


PS: this Mailing list or stackoverflow?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message