Match two annotations in RUTA rule

26 views Asked by At

If I do this in RUTA

(W W){->
    LOG("YES you match DOUBLES?")
};

then my rule matches on words. However, if I do this

IMPORT PACKAGE de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency
    FROM desc.type.Dependency AS dep;

(dep.Dependency dep.Dependency){->
    LOG("NO match on DOUBLES?")
};

then my rule does not match dependencies. I have also tried dep.Dependency[2,3] but that does not match. I thought it might have something to do with white space between dependencies but this doesn't work either dep.Dependency WS dep.Dependency.

I am using ruta-core:2.8.1. I know I can select single dependencies, so the annotation and my import are correct. I don't get it, what am I doing wrong?

0

There are 0 answers