Closed goodmami closed 4 years ago
A reasonable solution may be to issue a warning and otherwise ignore it (that is, set DMRS.top to None
or drop the link). This way one might still be able to get something useful out of the (possibly disconnected) DMRS, a conversion process wouldn't terminate mid-way through, and the user can still be aware of the problem from the warning.
Currently a bug in MRS-to-DMRS (or EDS) conversion causes a KeyError when the lo handle of a qeq is not the label of some EP. This sometimes happens when the TOP handle
h0
is qeq toh1
buth1
is not the label of anything. In the following example (item 1150 from the ERG's handp12 profile), the qeq from the scopal argument ofneg
is not the LBL of any EP:While these are bad MRSs and there might not be a reasonable way to recover from these errors, the error message could be more useful to the user. And processes like
delphin convert
should be able to detect the error and move on instead of stopping altogether.