Package jazzparser :: Package formalisms :: Package base :: Module modalities
[hide private]
[frames] | no frames]

Module modalities

source code

Modality hierarchy for the jazz grammars.

This provides classes for defining a hierarchy of modalities that will be used in a particular version of the grammar. This is not formalism-specific, since the hierarchy itself is entirely defined by the XML, even though some formalisms don't use modalities at all.

This also provides an abstract class the slashes with modalities on them should inherit from.


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Classes [hide private]
  ModalityTreeNode
A node in the modality tree.
  ModalityTree
The tree is a DAG which defines a hierarchy of categories.
  ModalSlash
A CCG slash class that wants modalities should inherit (first) from the base Slash (or some subclass) and also from this, to add the modality functionality.
  ModalComplexCategory
  ModalAtomicCategory
Variables [hide private]
  __package__ = 'jazzparser.formalisms.base'