class documentation
class AbstractCCGCategory: (source)
Known subclasses: nltk.ccg.api.CCGVar, nltk.ccg.api.FunctionalCategory, nltk.ccg.api.PrimitiveCategory
Interface for categories in combinatory grammars.
| Method | __eq__ |
Undocumented |
| Method | __hash__ |
Undocumented |
| Method | __lt__ |
Undocumented |
| Method | __ne__ |
Undocumented |
| Method | __str__ |
Undocumented |
| Method | can |
Returns None if they cannot be unified |
| Method | is |
Returns true if the category is a function application. |
| Method | is |
Returns true if the category is primitive. |
| Method | is |
Returns true if the category is a variable. |
| Method | substitute |
Takes a set of (var, category) substitutions, and replaces every occurrence of the variable with the corresponding category. |
| Instance Variable | _hash |
Undocumented |
- Determines whether two categories can be unified.
- Returns None if they cannot be unified
- Returns a list of necessary substitutions if they can.