Package nltk :: Package inference :: Module nonmonotonic :: Class PredHolder
[hide private]
[frames] | no frames]

type PredHolder

source code

object --+
         |
        PredHolder

This class will be used by a dictionary that will store information about predicates to be used by the ClosedWorldProver.

The 'signatures' property is a list of tuples defining signatures for which the predicate is true. For instance, 'see(john, mary)' would be result in the signature '(john,mary)' for 'see'.

The second element of the pair is a list of pairs such that the first element of the pair is a tuple of variables and the second element is an expression of those variables that makes the predicate true. For instance, 'all x.all y.(see(x,y) -> know(x,y))' would result in "((x,y),('see(x,y)'))" for 'know'.

Instance Methods [hide private]
 
__init__(self) source code
 
append_sig(self, new_sig) source code
 
append_prop(self, new_prop) source code
 
validate_sig_len(self, new_sig) source code
 
__str__(self) source code
 
__repr__(self) source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)