Package nltk :: Package ccg :: Module api :: Class Direction
[hide private]
[frames] | no frames]

classobj_type Direction

source code

Class representing the direction of a function application. Also contains maintains information as to which combinators may be used with the category.

Instance Methods [hide private]
 
__init__(self, dir, restrictions) source code
 
is_forward(self) source code
 
is_backward(self) source code
 
dir(self) source code
 
restrs(self)
A list of restrictions on the combinators.
source code
 
is_variable(self) source code
 
can_unify(self, other) source code
 
substitute(self, subs) source code
 
can_compose(self) source code
 
can_cross(self) source code
 
__cmp__(self, other) source code
 
__hash__(self) source code
 
__str__(self) source code
 
__neg__(self) source code
Method Details [hide private]

restrs(self)

source code 

A list of restrictions on the combinators. '.' denotes that permuting operations are disallowed ',' denotes that function composition is disallowed '_' denotes that the direction has variable restrictions. (This is redundant in the current implementation of type-raising)