| Trees | Indices | Help |
|
|---|
|
|
Special bindings to the music_halfspan formalism required by the PCFG parser.
Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>
|
|||
|
HalfspanPcfgModel A simple implementation of the PcfgModel interface. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
__package__ =
|
|||
|
|||
Given a syntactic category, generates a representation that will be used by the model. The result should be a string and must uniquely identify all of the features of the category that the model should distinguish. If base_category is given, it may be used as a base to compare the category to. In this case, observations of generated categories always take their parent as a base category and syntactic pitches are all relative to it. If base_category is not given, the category itself will be considered the base category. |
Returns a version of the Chord object that's relative to the base pitch of the category. If no category is given, the chord returned will be rooted at I (i.e. relative to itself). |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:55 2012 | http://epydoc.sourceforge.net |