Beni Santos created UIMA-6367:
---------------------------------

             Summary: MARKFAST don't work when a Ruta 3 script runs in an AAE 
inside a PEAR context
                 Key: UIMA-6367
                 URL: https://issues.apache.org/jira/browse/UIMA-6367
             Project: UIMA
          Issue Type: Bug
          Components: Ruta
    Affects Versions: 3.1.0ruta, 3.0.1ruta
         Environment: Environment:
 * SO: macOS 10.14.6
 * AdoptOpenJDK 1.8.0_252-b09
 * uimaj-core 3.2.0
 * ruta-core 3.1.0
            Reporter: Beni Santos


When an AAE runs in a PEAR context, and the first analysis engine is a Ruta 
script with MARFAST (or MARKTABLE) actions, those actions don't work (same 
situation after a CAS multiplier).

The problem seems to be coming from {{RutaStream#moveToFirst}} when it's called 
from {{TreeWordList.find}}; in that case, the underlying iterator is not 
properly reset. It may be something related with the RutaStream 
"bootstrapping"... I don't know :(

If a new Ruta script (for instance, an empty script) is placed before the 
"problematic" one, the problem with those MARKFAST/TABLE actions goes away. 

Example here: [https://github.com/benisantos/ruta3-markfast-pear-bug]

*Note*: with UIMA/Ruta 2.x this problem doesn't exist at all.
h2.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to