| Trees | Indices | Help |
|
|---|
|
|
Grammar processing for the Jazz Parser.
This module is used to read the XML grammar files for the parser. They are stored in the OpenCCG grammar format (roughly). This provides the interface to the grammar and the formalism for the parser and tagger.
Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>
|
|||
|
Grammar Represents a grammar read in from an XML grammar file. |
|||
|
Family A lexical family. |
|||
|
MorphItem A morphological item - a word. |
|||
|
MacroItem Not yet implemented. |
|||
| EntriesItem | |||
|
ChordClass Representation of a chord class. |
|||
|
EquivalenceMap A mapping from some of the morph entries to others via a root change. |
|||
|
EquivalenceEntry Like a MorphItem. |
|||
|
GrammarReadError Thrown if there's a problem while reading the grammar description from the XML file. |
|||
|
GrammarLookupError Raised if there are problems consulting the grammar. |
|||
|
|||
|
|||
|
|||
|
|||
logger = logging.getLogger("main_logger")
|
|||
_loaded_grammars =
|
|||
__package__ =
|
|||
|
|||
Returns an instance of Grammar for the named grammar. This is like instantiating Grammar with the grammar with the name as an argument, but caches loaded grammars. If the named grammar has been previously loaded, the same instance will be returned again. If you want to force a new instance, use |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:55 2012 | http://epydoc.sourceforge.net |