uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reza Hay"<reza...@gmail.com>
Subject How to use Type comparison?
Date Tue, 13 Jun 2017 13:51:20 GMT
Hi All,

The following Ruta (2.6.0) statement gives me correct answer:
TYPESYSTEM Types.DKPROTypeSystem;
IMPORT de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.ROOT FROM Types.DKPROTypeSystem
AS DEP_ROOT;

DEP_ROOT{DEP_ROOT.Governor.pos.PosValue == "VBZ" -> LOG("root: " + DEP_ROOT.Governor.pos.ct)};

However, the following statement (comparing types) results in empty output:
DEP_ROOT{DEP_ROOT.Governor.pos == VERB -> LOG("root: " + DEP_ROOT.Governor.pos.ct)};

Isn't it possible to compare types as I did?

Regards,
Reza




Mime
View raw message