1128
Comment:
|
2363
first go at definition of Simple MRS syntax
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from MrsRFC | |
Line 31: | Line 32: |
'''mrs''' `::= "[" "LTOP:"` '''var''' `"INDEX:"` '''var''' `[ " [ " `'''vtype''' '''proplist'''` " ] " ] "RELS:" "<" `'''eplist'''` ">" "HCONS:" "<" `'''hconss'''` ">" "]"` '''var''' `::= /[A-Za-z][^\d\s]*\d+/` '''vtype''' `::= /[A-Za-z][^\d\s]*/` '''proplist''' `::= (`'''prop''' '''val'''`)*` '''prop''' `::= /[^\s]+:/` '''val''' `::= /[^\s]+/` '''eplist''' `::= `'''ep'''`*` '''ep''' `::= "[" `'''pred''' '''roles'''` "]"` '''pred''' `::= (`'''realpred'''`|`'''grammarpred'''`)[`'''span'''`]` '''realpred''' `::= /^"_[\w/\\"']+_rel"/` '''grammarpred''' `::= /\w+_rel/` '''span''' `::= /<(-)?\d+:(-)?\d+>/` '''roles''' `::=` '''role'''`*` '''role''' `::= "LBL:" `'''var'''` | "CARG:" `'''string'''` | `'''rolename''' '''var'''` ["[" `'''vtype''' '''proplist'''` "]"]` '''rolename''' `::= /[^\s]+:/` '''string''' `::= "string" | `'''starredstring'''` | `'''quotedstring''' '''starredstring''' `::= /\*\w*\*/` '''quotedstring''' `::= /"((\\")|[^"]*)*"/` '''hconss''' `::=` '''hcons'''`*` '''hcons''' `::=` '''var''' '''relation''' '''var''' '''relation''' `::= "qeq" | "lheq" | "outscopes"` |
Request For Comments: MRS
Overview
Formal Properties
Required properties:
- TOP
- INDEX
- RELS
- HCONS
Note that there is debate about the status of INDEX. It is not part of the formal definition of a complete MRS (see Copestake et al., 2005), hence Ann has at times argued it should be suppressed when constructing an MRS from its TFS description. On that point of view, INDEX is an element of the composition process, but not the 'final' product.
Conversely, it has been argued (by Dan and Francis, among others) that composition does not stop at the utterance level, i.e. if we were to move into discourse-level analysis, we might still need access to INDEX. Furthermore, in semantic transfer it is often convenient to have access to the INDEX (even more so as the current ERG leaves the TOP underspecified). In conclusion, as of mid-2011, I believe INDEX can be considered a legitimate component of MRSs, even though it remains true that it has a slightly different formal status than the others
Syntaces
Simple MRS
mrs ::= "[" "LTOP:" var "INDEX:" var [ " [ " vtype proplist " ] " ] "RELS:" "<" eplist ">" "HCONS:" "<" hconss ">" "]"
var ::= /[A-Za-z][^\d\s]*\d+/
vtype ::= /[A-Za-z][^\d\s]*/
proplist ::= (prop val)*
prop ::= /[^\s]+:/
val ::= /[^\s]+/
eplist ::= ep*
ep ::= "[" pred roles "]"
pred ::= (realpred|grammarpred)[span]
realpred ::= /^"_[\w/\\"']+_rel"/
grammarpred ::= /\w+_rel/
span ::= /<(-)?\d+:(-)?\d+>/
roles ::= role*
role ::= "LBL:" var | "CARG:" string | rolename var ["[" vtype proplist "]"]
rolename ::= /[^\s]+:/
string ::= "string" | starredstring | quotedstring
starredstring ::= /\*\w*\*/
quotedstring ::= /"((\\")|[^"]*)*"/
hconss ::= hcons*
hcons ::= var relation var
relation ::= "qeq" | "lheq" | "outscopes"