I have following schema with:
define
token sub entity;
TEXT sub attribute, value string;
token sub entity, owns TEXT;
POS sub attribute, value string;
token sub entity, owns POS ;
DEP sub attribute, value string;
token sub entity, owns DEP ;
NomBank sub attribute, value string;
token sub entity, owns NomBank ;
ent_type sub attribute, value string;
token sub entity, owns ent_type;
define
semantic-class sub relation,
relates ADJ,
relates ADV,
relates INTJ,
relates NOUN,
relates PROPN,
relates VERB,
relates ADP,
relates AUX,
relates CCONJ,
relates DET,
relates NUM;
define
semantic-role sub relation,
relates det,
relates advmod,
relates amod,
relates nsubj,
relates nsubjpass,
relates csubj;
I would like to add a rule:
define
rule universionSemanticTags1ADJ:
when {
$a isa token, has POS âADJâ;
}
then
{
(ADJ:$a) isa semantic-class;
};
But when I add this rule, I get following error:
[RUW07] Invalid Rule Write: The rule âuniversionSemanticTags1ADJâ has a then clause â{ $_0 (ADJ:$a); $_0 isa semantic-class; }â that can never be satisfied in the current schema.
From my point of view, this should work. So maybe someone can help me to better understand what I doing wrong.