module documentation

An implementation of the Hole Semantics model, following Blackburn and Bos, Representation and Inference for Natural Language (CSLI, 2005).

The semantic representations are built by the grammar hole.fcfg. This module contains driver code to read in sentences and parse them according to a hole semantics grammar.

After parsing, the semantic representation is in the form of an underspecified representation that is not easy to read. We use a "plugging" algorithm to convert that representation into first-order logic formulas.

Class Constants Undocumented
Class Constraint This class represents a constraint of the form (L =< N), where L is a label and N is a node (a label or a hole).
Class HoleSemantics This class holds the broken-down components of a hole semantics, i.e. it extracts the holes, labels, logic formula fragments and constraints out of a big conjunction of such as produced by the hole semantics grammar...
Function hole_readings Undocumented
def hole_readings(sentence, grammar_filename=None, verbose=False): (source) ΒΆ

Undocumented