One of the papers for the NoDaLiDa CG workshop last week was the
implementation of WITH to do exactly that (and more):
https://visl.sdu.dk/pdf/CG-workshop2023_paper_3.pdf +
https://visl.sdu.dk/cg3/chunked/rules.html#with
So your rules could be rewritten to something like:
WITH NOPARENT V + Rel IF (1* VERB + IO:3SgNH BARRIER CLB) {
MAP >IOBJ (*) ;
SETPARENT (*) TO (jC1 (*)) ;
};
-- Tino Didriksen
On Tue, 30 May 2023 at 11:38, Paul Meurer <[email protected]> wrote:
> Hi,
>
> I am building dependency analyses from scratch in my CG3 grammar, using
> SETPARENT and MAP.
>
> Often I find myself establishing a parent relation, and using MAP to put a
> label on it right afterwards, by basically repeating the constraints from
> the SETPARENT rule (with the obvious adaptations).
>
> So I would find a rule that would do both operations in one very useful,
> something like
>
> SETPARENT V + Rel
> MAP >IOBJ
> IF (NEGATE p (*))
> TO (1* VERB + IO:3SgNH BARRIER CLB) ;
>
> Perhaps I am missing something here?
>
> Regards,
> 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 on the web visit
https://groups.google.com/d/msgid/constraint-grammar/CABnmVq5rdgOt2VVEgEsKNNEGZHuWYuEh%3DF6OYbRdteUhoJ-QrA%40mail.gmail.com.