Hi,

I think I discovered a bug in the REMCOHORT command.

A minimal example: 

---
# cat remcohort-bug.vrt | vislcg3 --grammar remcohort-bug.cg3 --trace > 
remcohort-bug.dis

STRICT-TAGS += Noun Adj >AMOD ;
       
# this rule is triggered on "<2>", but not on "<4>".
WITH NOPARENT Adj
  IF (-1 Noun) {
   MAP >AMOD (*) ;
   SETPARENT (*) TO (jC1 (*)) ;
   REMCOHORT IGNORED WITHCHILD (*) (*) ;
} ;
---

Input:

---
"<1>"
        "1" Noun
"<2>"
        "2" Adj
"<3>"
        "3" Noun
"<4>"
        "4" Adj
---

Output:


---
"<1>"
        "1" Noun #1->1
"<2>"
        "2" Adj >AMOD #2->1 WITH:6 MAP:8 SETPARENT:9 REMCOHORT:10
"<3>"
        "3" Noun #3->3
"<4>"
        "4" Adj #4->4
---

As you can see, the rule is triggered on "<2>", but not on "<4>". When I remove 
the REMCOHORT line, it triggers on both cohorts, but of course I do need 
REMCOHORT.

Btw, an unrelated minor bug: NOPARENT does not seem to have an effect. I just 
replace it by (NOT p (*)).

- Paul Meurer

-- 
You received this message because you are subscribed to the Google Groups 
"Constraint Grammar" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/constraint-grammar/B3F0F4FD-A725-43B2-8BED-9F448EE9AC2D%40uib.no.

Reply via email to