uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Christ <ochr...@EBSCO.COM>
Subject RE: Restricting a aggregate engine to a substring or mention
Date Fri, 20 Jun 2014 16:22:43 GMT
Hi Armin, 

I'm not aware of a generic mechanism to restrict an AN's scope of processing, but I'm very
new to UIMA. 

It seems that Petr's approach does address the general case though: if some AE doesn't support
"zones", create a new view containing just the content you want to have processed, and run
the AE on that view.

Cheers, Oli

-----Original Message-----
From: Armin.Wegner@bka.bund.de [mailto:Armin.Wegner@bka.bund.de] 
Sent: Friday, June 20, 2014 4:12 AM
To: user@uima.apache.org
Subject: AW: Restricting a aggregate engine to a substring or mention

Hi Oli!

If I get it right, the ability for restricting processing to mentions of given types is inherited
from a base class. So every analysis engine that should do this, must inherit from that base
clase. Sure, that's one way of doing it. But it's part of the analysis engine.

Thanks,
Armin

-----Urspr√ľngliche Nachricht-----
Von: Oliver Christ [mailto:ochrist@EBSCO.COM]
Gesendet: Dienstag, 17. Juni 2014 20:48
An: user@uima.apache.org
Betreff: RE: Restricting a aggregate engine to a substring or mention

dkpro-core's BreakIteratorSegmenter (rather: its base class) takes the same approach. It allows
you to specify that segmentation should occur within "zones", defined by some other annotation
type.

https://code.google.com/p/dkpro-core-asl/source/browse/de.tudarmstadt.ukp.dkpro.core-asl/trunk/de.tudarmstadt.ukp.dkpro.core.api.segmentation-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/api/segmentation/SegmenterBase.java


Usage:

	pipeline.add(createEngineDescription(BreakIteratorSegmenter.class,
		BreakIteratorSegmenter.PARAM_ZONE_TYPES, new String[] { MyZoneAnnotation.class.getName()
}));

Cheers, Oli

-----Original Message-----
From: Thomas Ginter [mailto:thomas.ginter@utah.edu]
Sent: Tuesday, June 17, 2014 2:20 PM
To: user@uima.apache.org
Subject: Re: Restricting a aggregate engine to a substring or mention

We do this by having a parameter for some of our standard annotators, like our RegexAnnotator,
that allows the user to specify an annotation type.  If a type is specified then the operations
of the annotator are restricted to the covered text of the annotation type instances specified.
 If no annotation type is provided then the entire document is assumed.  In that way we can
have annotators that perform some logic to find the regions of interest and then the subsequent
annotators only operate on those regions.

Thanks,

Thomas Ginter
801-448-7676
thomas.ginter@utah.edu




On Jun 12, 2014, at 4:00 AM, Dr. Armin Wegner <arminwegner@googlemail.com> wrote:

> Hello!
> 
> Is there an UIMA component which restricts an aggregated analysis 
> engine to a substring of the document text or to mentions of a given 
> annotation type? That is, is there a UIMA aquivalent to GATE's Segment 
> Processing PR?
> 
> Thanks,
> Armin


Mime
View raw message