class documentation

Class representing a lexicon for CCG grammars.

  • primitives: The list of primitive categories for the lexicon
  • families: Families of categories
  • entries: A mapping of words to possible categories
Method __init__ Undocumented
Method __str__ String representation of the lexicon. Used for debugging.
Method categories Returns all the possible categories for a word
Method start Return the target category for the parser
Instance Variable _entries Undocumented
Instance Variable _families Undocumented
Instance Variable _primitives Undocumented
Instance Variable _start Undocumented
def __init__(self, start, primitives, families, entries): (source)

Undocumented

def __str__(self): (source)

String representation of the lexicon. Used for debugging.

def categories(self, word): (source)

Returns all the possible categories for a word

def start(self): (source)

Return the target category for the parser

_entries = (source)

Undocumented

_families = (source)

Undocumented

_primitives = (source)

Undocumented

Undocumented