nltk.ccg.api module¶
- class nltk.ccg.api.AbstractCCGCategory[source]¶
Bases:
objectInterface for categories in combinatory grammars.
- class nltk.ccg.api.CCGVar[source]¶
Bases:
AbstractCCGCategoryClass representing a variable CCG category. Used for conjunctions (and possibly type-raising, if implemented as a unary rule).
- class nltk.ccg.api.Direction[source]¶
Bases:
objectClass representing the direction of a function application. Also contains maintains information as to which combinators may be used with the category.
- class nltk.ccg.api.FunctionalCategory[source]¶
Bases:
AbstractCCGCategoryClass that represents a function application category. Consists of argument and result categories, together with an application direction.
- class nltk.ccg.api.PrimitiveCategory[source]¶
Bases:
AbstractCCGCategoryClass representing primitive categories. Takes a string representation of the category, and a list of strings specifying the morphological subcategories.