uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eckart de Castilho <...@apache.org>
Subject Re: Exposing a View to Downstream AEs
Date Sat, 29 Aug 2015 15:29:46 GMT

On 29.08.2015, at 10:27, Richard Eckart de Castilho <rec@apache.org> wrote:

> Hi Matt,
> 
> what you are looking for is called "sofa mapping". On the level of an
> aggregate, you can define view names and map these names to local
> names in each of the AEs.
> 
> E.g. if you have one AE that produces a view it calls "output" and
> another one that expects its data in "_InitialView", then you could
> set up a mapping like
> 
> AAE "data" -> AE1 "output"
> AAE "data" -> AE2 "_InitialView" (CAS.NAME_DEFAULT_SOFA)
> 
> If you are using uimaFIT, you can use the AggregateBuilder, e.g.

Whoopsy... there was a typo in the previous post in this section... fixed here:

builder = new AggregateBuilder();
builder.add(analysisEngineDescription1, "output", "data");
// last arg below was "output", should have been "data"
builder.add(analysisEngineDescription1, CAS.NAME_DEFAULT_SOFA, "data"); 
AnalysisEngineDescription aggregateEngine = builder. createAggregateDescription();

-- Richard
Mime
View raw message