You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an MRS with TOP qeq to the handle of nothing, with no qeq at all, or with no TOP at all, EDS will fail to convert the MRS with a KeyError. DMRS is able to convert them with a warning about the unusable TOP value (although this warning is absent when TOP is missing entirely; maybe not a bug?).
A relevant difference between DMRS and EDS here is that EDS requires the graph's top to be specified, while DMRS does not (at least not in the DTD), so maybe we do want an error when EDS fails to select a top, but perhaps a more informative error would be better. However, IIRC, the LKB's code will back off to using the INDEX as the TOP in an attempt to give a plausible EDS for every MRS. I don't know what happens if there is no INDEX, either.
Here are some short examples (approximating the MRS for "It rained.") that reproduce the problem:
From this mailing list thread, the LKB does apparently back off first to INDEX, then if that fails it creates a fake, unlinked top variable. However, Stephan then reconsidered that behavior and suggested the following:
may i suggest you add the fall-back, looking for the INDEX, and
otherwise allow EDSs whose top is empty.
That is, if neither TOP nor INDEX can be determined, the codec should allow for no top variable to be present.
Originally from delph-in/delphin.edm#1
Given an MRS with TOP qeq to the handle of nothing, with no qeq at all, or with no TOP at all, EDS will fail to convert the MRS with a
KeyError
. DMRS is able to convert them with a warning about the unusable TOP value (although this warning is absent whenTOP
is missing entirely; maybe not a bug?).A relevant difference between DMRS and EDS here is that EDS requires the graph's top to be specified, while DMRS does not (at least not in the DTD), so maybe we do want an error when EDS fails to select a top, but perhaps a more informative error would be better. However, IIRC, the LKB's code will back off to using the INDEX as the TOP in an attempt to give a plausible EDS for every MRS. I don't know what happens if there is no INDEX, either.
Here are some short examples (approximating the MRS for "It rained.") that reproduce the problem:
The text was updated successfully, but these errors were encountered: