uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Epstein <eaepst...@gmail.com>
Subject Re: Is there a way to tell UIMA component to only extract some kind of entities when run opennlp.pear?
Date Wed, 11 Jun 2014 23:09:17 GMT
Hi Jeffery,

According the info at
http://uima.apache.org/d/uimaj-2.6.0/tutorials_and_users_guides.html#ugr.tug.aae.result_specification_setting

   "The default Result Specification is taken from the Engine's output
Capability Specification."

So it should be possible to deploy the UIMA-AS service with a particular
ResultSpecification,
if a static configuration is all that is needed.

Using the ResultSpecification to control annotator behavior is quite
limited;
consider wanting a speed vs accuracy knob. A more general static solution
would be based
on configuration parameters, and a dynamic solution would put control
information into the CAS.

Eddie




On Thu, Jun 5, 2014 at 5:20 PM, Jeffery <yuanyun.kenny@gmail.com> wrote:

> Marshall Schor <msa@...> writes:
>
> >
> > UIMA's descriptors include a section under the XML capabilities element
> where
> > the descriptor may specify inputs and outputs.  These end up informing
> the
> > ResultSpecification which is provided to the annotator.  The
> ResultSpecification
> > can be queried by the annotator code to see what the annotator ought to
> produce.
> >
> > This is used, for example by sample annotators in the examples project:
> >    TutorialDateTime
> >    RegExAnnotator
> >    PersonTitleAnnotator
> >
> > to control what the annotators produce.
> >
> > This behavior, on the part of annotators, is "optional" - that is, an
> annotator
> > might be written to ignore the ResultSpecification.
> >
> > So the key may be to update the annotators to take account of the
> > ResultSpecification.
> >
> > For more background, see
> > http://uima.apache.org/d/uimaj-
>
> 2.6.0/tutorials_and_users_guides.html#ugr.tug.aae.result_specification_setti
> ng
> >
> > which discusses the ResultSpecification further.
> >
> > -Marshall
>
> Thanks, Marshall
>
>    I tried your suggestions, and it works very well.
>    Recently, I am looking into UIMA-AS, I am wonderring whether we can do
> same thing in uima-as. But seems UIMA-AS doesn't use ResultSpecificatio:
> the
> sendCas method doesn't accept ResultSpecificatio.
>
>   String casId = asAE.sendCAS(cas);
>
> Thanks again for your great help, Marshall.
> -- Seems my last thank-you post somehow was gone.
>
>

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