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

type PrimitiveCategory

source code

         object --+    
                  |    
AbstractCCGCategory --+
                      |
                     PrimitiveCategory

Class representing primitive categories. Takes a string representation of the category, and a list of strings specifying the morphological subcategories.

Instance Methods [hide private]
 
__init__(self, categ, restrictions=[]) source code
 
is_primitive(self) source code
 
is_function(self) source code
 
is_var(self) source code
 
restrs(self) source code
 
categ(self) source code
 
substitute(self, subs) source code
 
can_unify(self, other) source code
 
__cmp__(self, other) source code
 
__hash__(self) source code
 
__str__(self) source code
Method Details [hide private]

__init__(self, categ, restrictions=[])
(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__