UIMA Ruta how to add negative condition
03:07 12 Feb 2026

I am working in UIMA Ruta and I want to annotated nouns only if they do not have a determiner. I am thinking of something like this (I do Mark the nouns beforehand)

(N & MorphologicalFeatures.case == "nom" & -PARTOF(xx.NULLARTIKEL)

But I get this syntax error

  • Mismatched Input: Expecting "SEMI" but found ")". - Mismatched Input: Expecting "RPAREN" but found "(". - Syntax error: -

I also tried

(N & MorphologicalFeatures.case == "nom" )
W*?
V
{-PARTOF(ConstructsA1.HASARTICLE),
    -> CREATE(type.annotation.Construct,1,1,"constructID"=xx, "span"=true)}; 

This doesn't give errors, but it doesn't work. How can I add negative conditions like this?

Thanks!

uima ruta