Package nltk :: Package sem :: Module hole :: Class Constraint
[hide private]
[frames] | no frames]

type Constraint

source code

object --+
         |
        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).

Instance Methods [hide private]
 
__init__(self, lhs, rhs) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__hash__(self) source code
 
__repr__(self) source code
Method Details [hide private]

__init__(self, lhs, rhs)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 
Overrides: object.__hash__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)