delphin.mrs.semi¶
Semantic Interface (SEM-I)
Semantic interfaces (SEM-Is) describe the inventory of semantic components in a grammar, including variables, properties, roles, and predicates. This information can be used for validating semantic structures or for filling out missing information in incomplete representations.
See also
- Wiki on SEM-I: http://moin.delph-in.net/SemiRfc
-
delphin.mrs.semi.
load
(fn)[source]¶ Read the SEM-I beginning at the filename fn and return the SemI.
Parameters: fn – the filename of the top file for the SEM-I. Note: this must be a filename and not a file-like object. Returns: The SemI defined by fn
-
class
delphin.mrs.semi.
SemI
(variables=None, properties=None, roles=None, predicates=None)[source]¶ A semantic interface.
SEM-Is describe the semantic inventory for a grammar. These include the variable types, valid properties for variables, valid roles for predications, and a lexicon of predicates with associated roles.
Parameters: - variables – a mapping of (var, Variable)
- properties – a mapping of (prop, Property)
- roles – a mapping of (role, Role)
- predicates – a mapping of (pred, Predicate)