There is no mechanism for a uima-as client to modify the result specification of a remote service. Since type/feature control cannot indicate many other behavioral characteristics, like speed vs accuracy tradeoffs, the suggested approach for dynamic control is to use dedicated feature structures in the submitted CAS.
Eddie On Tue, Sep 30, 2014 at 11:13 PM, jeffery yuan <yuanyu...@gmail.com> wrote: > Hi, Dear UIMA Developer and Users: > > Thanks advance for any help. > > I am using UIMA AS and the RegExAnnotator. > I am wondering whether the client can send some custom key value > parameters to > the annotator. > > The real function I want to implement is: > ------------------------------------------ > As there are multiple(10+) regex defined in the regex.pear, client may be > only > interested in several entity types, so we want RegExAnnotator only run > regex > for types that client specifies. > > If I use synchronous UIMA API, I can set ResultSpecification in client. > AnalysisEngine ae; > ResultSpecification rs = createResultSpecification(types); > ae.process(cas, rsf); > > RegExAnnotator then check > getResultSpecification().getResultTypesAndFeatures(), then only run needed > regex. > > But as I use UIMA AS(ae.sendCAS(cas);), there is no API to set > ResultSpecification or specify custom key value parameters. > > Thanks... > >