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

type FunctionalCategory

source code

         object --+    
                  |    
AbstractCCGCategory --+
                      |
                     FunctionalCategory

Class that represents a function application category. Consists of argument and result categories, together with an application direction.

Instance Methods [hide private]
 
__init__(self, res, arg, dir) source code
 
is_primitive(self) source code
 
is_function(self) source code
 
is_var(self) source code
 
substitute(self, subs) source code
 
can_unify(self, other) source code
 
arg(self) source code
 
res(self) source code
 
dir(self) source code
 
__cmp__(self, other) source code
 
__hash__(self) source code
 
__str__(self) source code
Method Details [hide private]

__init__(self, res, arg, dir)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

is_primitive(self)

source code 
Overrides: AbstractCCGCategory.is_primitive

is_function(self)

source code 
Overrides: AbstractCCGCategory.is_function

is_var(self)

source code 
Overrides: AbstractCCGCategory.is_var

substitute(self, subs)

source code 
Overrides: AbstractCCGCategory.substitute

can_unify(self, other)

source code 
Overrides: AbstractCCGCategory.can_unify

__cmp__(self, other)
(Comparison operator)

source code 
Overrides: AbstractCCGCategory.__cmp__

__hash__(self)
(Hashing function)

source code 
Overrides: AbstractCCGCategory.__hash__

__str__(self)
(Informal representation operator)

source code 
Overrides: AbstractCCGCategory.__str__