;;; -*- Mode: TDL; Package: LKB -*- ;;; ;;; $Id: labels.tdl,v 1.8 2008-05-23 01:44:21 sfd Exp $ ;;; These label definitions are used by the LKB to put ;;; labels on the nodes of the trees it displays. They ;;; are solely for the convenience of the grammar developer ;;; and do not carry theoretical significance. Accordingly, ;;; though they are provided as part of the Matrix distribution, ;;; users should customize them without hesitation. ;;; NB: This is one tdl file in which order matters. ;;; The LKB will choose the first label it encounters (in the ;;; order below) which is consistent with the node it is ;;; labeling. If two labels are consistent with each other, ;;; the more specific one must appear first in this list, or ;;; it will never get used. slash := meta & [ SYNSEM.NON-LOCAL.SLASH diff-list & [ LIST < local, ... > ], META-PREFIX "/", META-SUFFIX "" ]. n-mid-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD noun, VAL.SPR < [ ] > ], COORD +, COORD-REL implicit-coord-rel ], LNAME "NP-M" ]. n-bottom-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD noun, VAL.SPR < [ ] > ], COORD + ], LNAME "NP-B" ]. n-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD noun, VAL.SPR < [ ] > ], COORD-STRAT "" ], LNAME "N" ]. n-top-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD noun, VAL.SPR < [ ] > ], LNAME "NP-T" ]. np-mid-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD noun, VAL.SPR < > ], COORD +, COORD-REL implicit-coord-rel ], LNAME "NP-M" ]. np-bottom-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD noun, VAL.SPR < > ], COORD + ], LNAME "NP-B" ]. n-lex-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD noun, VAL.COMPS <[], ... > ], COORD-STRAT "" ], LNAME "N" ]. np-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD noun, VAL.SPR < > ], COORD-STRAT "" ], LNAME "NP" ]. np-top-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD noun, VAL.SPR < > ], LNAME "NP-T" ]. s-mid-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verb, VAL [ COMPS < >, SUBJ < > ] ], COORD +, COORD-REL implicit-coord-rel ], LNAME "S-M"]. s-bottom-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verb, VAL [ COMPS < >, SUBJ < > ] ], COORD + ], LNAME "S-B"]. s-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verb & [VFORM fin], VAL [ COMPS < >, SUBJ < > ] ], COORD-STRAT "" ], LNAME "S"]. s-top-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD verb & [VFORM fin], VAL [ COMPS < >, SUBJ < > ] ], LNAME "S-T"]. ; eq-label := syn-label & ; [SYNSEM.LOCAL [ CAT [ HEAD verb & [KEYS.KEY "ident_rel", ; VFORM fin]]], ; LNAME "EQ" ]. aux-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verb & [VFORM fin]], COORD-STRAT "" ], LNAME "AUX" ]. v-mid-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verbal, VAL.COMPS < [ ], ... > ], COORD +, COORD-REL implicit-coord-rel ], LNAME "V-M" ]. v-bottom-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verbal, VAL.COMPS < [ ], ... > ], COORD + ], LNAME "V-B" ]. v-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verbal, VAL.COMPS < [ ], ... > ], COORD-STRAT "" ], LNAME "V" ]. v-top-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD verbal, VAL.COMPS < [ ], ... > ], LNAME "V-T" ]. vp-mid-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verbal, VAL [ COMPS < >, SUBJ < [ ] > ]], COORD +, COORD-REL implicit-coord-rel ], LNAME "VP-M" ]. vp-bottom-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verbal, VAL [ COMPS < >, SUBJ < [ ] > ]], COORD + ], LNAME "VP-B" ]. v-lex-label := word-label & [ SYNSEM.LOCAL [ CAT [ HEAD verbal ], COORD-STRAT "" ], LNAME "V" ]. vp-label := syn-label & [ SYNSEM.LOCAL [ CAT [ HEAD verbal, VAL [ COMPS < >, SUBJ < [ ] > ]], COORD-STRAT "" ], LNAME "VP" ]. vp-top-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD verbal, VAL [ COMPS < >, SUBJ < [ ] > ]], LNAME "VP-T" ]. p-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD adp, VAL.COMPS < [ ], ... > ], LNAME "P" ]. pp-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD adp, VAL.COMPS < > ], LNAME "PP" ]. c-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD comp, VAL.COMPS < [ ], ... > ], LNAME "C" ]. cp-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD comp, VAL.COMPS < > ], LNAME "CP"]. det-label := syn-label & [ SYNSEM.LOCAL.CAT.HEAD det, LNAME "D"]. adv-mid-label := syn-label & [ SYNSEM.LOCAL [ CAT.HEAD adv, COORD +, COORD-REL implicit-coord-rel ], LNAME "ADV-M" ]. adv-bottom-label := syn-label & [ SYNSEM.LOCAL [ CAT.HEAD adv, COORD + ], LNAME "ADV-B" ]. adv-label := syn-label & [ SYNSEM.LOCAL [ CAT.HEAD adv, COORD-STRAT "" ], LNAME "ADV" ]. adv-top-label := syn-label & [ SYNSEM.LOCAL.CAT.HEAD adv, LNAME "ADV-T" ]. adj-mid-label := syn-label & [ SYNSEM.LOCAL [ CAT.HEAD adj, COORD +, COORD-REL implicit-coord-rel ], LNAME "ADJ-M" ]. adj-bottom-label := syn-label & [ SYNSEM.LOCAL [ CAT.HEAD adj, COORD + ], LNAME "ADJ-B" ]. adj-label := syn-label & [ SYNSEM.LOCAL[ CAT.HEAD adj, COORD-STRAT "" ], LNAME "ADJ" ]. adj-top-label := syn-label & [ SYNSEM.LOCAL.CAT.HEAD adj, LNAME "ADJ-T" ]. conj-label := syn-label & [ SYNSEM.LOCAL.CAT.HEAD conj, LNAME "CONJ" ]. num-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD num, VAL.COMPS < [ ], ... > ], LNAME "NUM" ]. numbar-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD num, VAL [ COMPS < >, SPR < [ ] > ]], LNAME "NUM-BAR" ]. nump-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD num, VAL [ COMPS < >, SPR < > ]], LNAME "NUMP" ]. particle-label := syn-label & [ SYNSEM.LOCAL.CAT [ HEAD particle-head, VAL [ COMPS < >, SPR < > ]], LNAME "PART" ]. p-stem-label := lex-label & [ SYNSEM.LOCAL.CAT [ HEAD adp], LNAME "P" ]. v-stem-label := lex-label & [ SYNSEM.LOCAL.CAT [ HEAD verbal], LNAME "V-STEM" ]. n-stem-label := lex-label & [ SYNSEM.LOCAL.CAT [ HEAD noun], LNAME "N-STEM" ].