delph-in / erg

English Resource Grammar
MIT License
17 stars 3 forks source link

invalid MRS? #25

Closed arademaker closed 3 years ago

arademaker commented 3 years ago

Trunk version with sentence communicate or express by writing

[ TOP: h0
  INDEX: e2 [ e SF: prop TENSE: tensed MOOD: indicative PROG: - PERF: - ]
  RELS: < [ _communicate_v_to<0:11> LBL: h1 ARG0: e4 [ e SF: prop TENSE: tensed MOOD: indicative PROG: - PERF: - ] ARG1: i3 ARG2: h5 ARG3: i6 ]
          [ _or_c<12:14> LBL: h1 ARG0: e2 ARG1: e4 ARG2: e7 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ] ]
          [ _express_v_to<15:22> LBL: h1 ARG0: e7 ARG1: i3 ARG2: h8 ARG3: i9 ]
          [ unknown<23:33> LBL: h10 ARG: u12 ARG0: e11 [ e SF: prop TENSE: untensed MOOD: indicative ] ]
          [ _by_p_means<23:25> LBL: h10 ARG0: e11 ARG1: u13 ARG2: x14 ]
          [ udef_q<26:33> LBL: h15 ARG0: x14 RSTR: h16 BODY: h17 ]
          [ nominalization<26:33> LBL: h18 ARG0: x14 ARG1: h19 ]
          [ _write_v_to<26:33> LBL: h19 ARG0: e20 [ e SF: prop TENSE: untensed MOOD: indicative PROG: + PERF: - ] ARG1: i21 ARG2: i22 ] >
  HCONS: < h0 qeq h1 h5 qeq h23 h8 qeq h23 h16 qeq h18 > ]
danflick commented 3 years ago

This dictionary definition phrase with missing objects for the two verbs should only be parsable using the variant of the ERG intended for parsing dictionary definitions. I fixed a bug in the right-node-raising rule that was wrongly analyzing this example with the standard ERG, and will check in the change to `trunk' shortly. To compile the variant grammar, do ace -G erg-dict.dat -g ace/config-dict.tdl and you can confirm that the top-ranked parse of the above has the correct MRS.