uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burn Lewis <burnle...@gmail.com>
Subject Re: Is is possible to pass cas view to the process method of an annotator?
Date Mon, 03 Dec 2012 23:31:06 GMT
> One more question on a related note: Is it possible to set sofa mappings
in
> the Flow Controller? From all the code usages that I have come across it
> seems that sofa mappings can only be set while building the
AnalysisEngine.

No, but the FC could modify the CAS, e.g. set some FS to say what view an
annotator should switch to.
If you can modify the annotator code it's very easy to make it sofa aware
and, say, iterate over all views, or all matching some prefix, or those
specified in a config param.

~Burn


On Mon, Dec 3, 2012 at 5:57 PM, Richard Eckart de Castilho <
eckart@ukp.informatik.tu-darmstadt.de> wrote:

> Am 03.12.2012 um 23:32 schrieb Himanshu Gahlot <
> himanshu.gahlot86@gmail.com>:
>
> > One more question on a related note: Is it possible to set sofa mappings
> in
> > the Flow Controller? From all the code usages that I have come across it
> > seems that sofa mappings can only be set while building the
> AnalysisEngine.
>
>
> Good question. I don't know. I think it's not possible since the JavaDoc of
> the reconfigure() methods says the method is used only to update a
> component
> with new parameters. Also, the sofa mappings are read directly from the
> component descriptor which is afaik not accessible by a flow controller.
>
> I think sofa mappings can only be configured "statically". You probably
> could dynamically create a nested pipeline in your flow controller. I
> didn't use flow controllers very much so far.
>
> Maybe someone else has a better idea.
>
> -- Richard
>
> --
> -------------------------------------------------------------------
> 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
> eckart@ukp.informatik.tu-darmstadt.de
> www.ukp.tu-darmstadt.de
> Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
> -------------------------------------------------------------------
>
>
>
>
>
>
>

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