Hi,
I found this constraints rule on a relation type in one of our unit tests:
import de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Dependency as DEPENDENCY;
DEPENDENCY {
Governor.pos.PosValue = "NN" & Dependent.pos.PosValue = "DET" -> DependencyType = "det";
}
The "Governor" and "Dependent" things are hard-coded and refer to the two ends of the relation - any relation, not only Dependency relations.
Cheers,
-- Richard