You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Peter Klügl <pk...@uni-wuerzburg.de> on 2010/11/17 15:00:49 UTC

Type Priorities, Analysis Engines and one CAS

  Hi,

I stumbled over some unexpected behavior of the type priorities:

If I create a CAS using a type system descriptor and then process this 
CAS with an analysis engine that specified type priorities, then the 
analysis engine does not apply them when iterating over the index. 
However, the priorities are applied, if the analysis engine descriptor 
is used in order to create the CAS.

Is this an intended behavior?
Can two analysis engines with contradictory type priorities process the 
same CAS in custom java code?
Is there a way to enforce the usage of the type priorities at processing 
time, especially when they are not specified at the creation of the CAS?

In my source code, I added now the type priorities to the 
CasCreationUtils.createCAS() method, but that is an unwanted dependency 
to - at this point - unknown analysis engine.

thanks in advance

Peter

-- 
---------------------------------------------------------------------
Dipl.-Inf. Peter Klügl
Universität Würzburg        Tel.: +49-(0)931-31-86741
Am Hubland                  Fax.: +49-(0)931-31-86732
97074 Würzburg              mail: pkluegl@informatik.uni-wuerzburg.de
      http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
---------------------------------------------------------------------


Re: Type Priorities, Analysis Engines and one CAS

Posted by Peter Klügl <pk...@uni-wuerzburg.de>.
  Thanks Eddie for the info.

Am 17.11.2010 23:59, schrieb Eddie Epstein:
> On Wed, Nov 17, 2010 at 12:24 PM, Eddie Epstein<ea...@gmail.com>  wrote:
>> Type priorities are part of a CAS definition. If you want to run an AE
>> with different priorities, must run it as a remote service.
> More specifically, as a UIMA AS service. A Vinci service should
> also work. A SOAP service will not because the service receives the
> client's CAS definition along with the CAS data.
>
> Eddie


-- 
---------------------------------------------------------------------
Dipl.-Inf. Peter Klügl
Universität Würzburg        Tel.: +49-(0)931-31-86741
Am Hubland                  Fax.: +49-(0)931-31-86732
97074 Würzburg              mail: pkluegl@informatik.uni-wuerzburg.de
      http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
---------------------------------------------------------------------


Re: Type Priorities, Analysis Engines and one CAS

Posted by Eddie Epstein <ea...@gmail.com>.
On Wed, Nov 17, 2010 at 12:24 PM, Eddie Epstein <ea...@gmail.com> wrote:
> Type priorities are part of a CAS definition. If you want to run an AE
> with different priorities, must run it as a remote service.

More specifically, as a UIMA AS service. A Vinci service should
also work. A SOAP service will not because the service receives the
client's CAS definition along with the CAS data.

Eddie

Re: Type Priorities, Analysis Engines and one CAS

Posted by Eddie Epstein <ea...@gmail.com>.
Type priorities are part of a CAS definition. If you want to run an AE
with different priorities, must run it as a remote service.

On Wed, Nov 17, 2010 at 9:00 AM, Peter Klügl <pk...@uni-wuerzburg.de> wrote:
>  Hi,
>
> I stumbled over some unexpected behavior of the type priorities:
>
> If I create a CAS using a type system descriptor and then process this CAS
> with an analysis engine that specified type priorities, then the analysis
> engine does not apply them when iterating over the index. However, the
> priorities are applied, if the analysis engine descriptor is used in order
> to create the CAS.
>
> Is this an intended behavior?
> Can two analysis engines with contradictory type priorities process the same
> CAS in custom java code?
> Is there a way to enforce the usage of the type priorities at processing
> time, especially when they are not specified at the creation of the CAS?
>
> In my source code, I added now the type priorities to the
> CasCreationUtils.createCAS() method, but that is an unwanted dependency to -
> at this point - unknown analysis engine.
>
> thanks in advance
>
> Peter
>
> --
> ---------------------------------------------------------------------
> Dipl.-Inf. Peter Klügl
> Universität Würzburg        Tel.: +49-(0)931-31-86741
> Am Hubland                  Fax.: +49-(0)931-31-86732
> 97074 Würzburg              mail: pkluegl@informatik.uni-wuerzburg.de
>     http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
> ---------------------------------------------------------------------
>
>