uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Zesch <ze...@tk.informatik.tu-darmstadt.de>
Subject RE: Extracting a single view from a CAS
Date Thu, 22 Dec 2011 08:10:06 GMT
Hi Armin,

it seems you are asking for two things:
1) How to visualize a CAS?
2) How to handle multiple views?

1) It strongly depends on what you want to visualize. If you just want to look at the annotations
you might use the CAS Visualizer or CAS Editor. Or you can always write your own annotator
that outputs the desired visualization.

2) As a view is just a "CAS in disguise" you may simply write a view-unaware annotator doing
all the visualization on a single CAS and then use SofA mapping when assembling the pipeline.
An example using uimaFIT:

AnalysisEngineDescription visualizer = createPrimitiveDescription(

AggregateBuilder builder = new AggregateBuilder();
builder.add(visualizer, "_InitialView", VIEW_1);
builder.add(visualizer, "_InitialView", VIEW_2);
builder.add(visualizer, "_InitialView", VIEW_N);
AnalysisEngineDescription aggr = builder.createAggregateDescription();

where VIEW_1 ... VIEW_N are the names of your views.


> -----Original Message-----
> From: Armin.Wegner@bka.bund.de [mailto:Armin.Wegner@bka.bund.de]
> Sent: Thursday, December 22, 2011 8:30 AM
> To: user@uima.apache.org
> Subject: Extracting a single view from a CAS
> Hi,
> how to extract a single view from a CAS with text sofas? It's nice to
> have a CAS with multiple views. But how to visualize all the views? I
> like to see them, to check if they are ok. Is there any analysis engine
> for doing that?
> I'm thinking of writing a CAS multiplier that puts each view in its own
> CAS as _InitialView. What do you think about that?
> Sincerely,
> Armin

View raw message