Package nltk :: Package ccg :: Module combinator :: Class UndirectedComposition
[hide private]
[frames] | no frames]

type UndirectedComposition

source code

                object --+    
                         |    
UndirectedBinaryCombinator --+
                             |
                            UndirectedComposition

Functional composition (harmonic) combinator. Implements rules of the form X/Y Y/Z -> X/Z (B>) And the corresponding backwards and crossed variations.

Instance Methods [hide private]
 
can_combine(self, function, argument) source code
 
combine(self, function, argument) source code
 
__str__(self) source code
Method Details [hide private]

can_combine(self, function, argument)

source code 
Overrides: UndirectedBinaryCombinator.can_combine

combine(self, function, argument)

source code 
Overrides: UndirectedBinaryCombinator.combine

__str__(self)
(Informal representation operator)

source code 
Overrides: object.__str__
(inherited documentation)