Package jazzparser :: Package formalisms :: Package music_halfspan :: Module domxml
[hide private]
[frames] | no frames]

Module domxml

source code

XML processing utilites for the music_halfspan formalism.

These include building internal representations from the XML grammar definitions.


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

Functions [hide private]
 
build_sign_from_node(element)
Given the XML element of a CCG sign, builds the internal representation.
source code
 
build_category_from_node(element)
Uses an XML DOM node that represents a CCG category (i.e.
source code
 
build_lf_from_node(elem)
Given the "lf" node of a lexical entry, builds a logical form representing it internally.
source code
Variables [hide private]
  logger = logging.getLogger("main_logger")
  __package__ = 'jazzparser.formalisms.music_halfspan'
Function Details [hide private]

build_category_from_node(element)

source code 

Uses an XML DOM node that represents a CCG category (i.e. a structure of atomcats and complexcats) to build a CCG category in our internal representation.

Returns:
a Category subclass that is the root of the category structure

build_lf_from_node(elem)

source code 

Given the "lf" node of a lexical entry, builds a logical form representing it internally.

Returns:
a LogicalForm built from the node