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

Module base

source code

Base classes for grammarless tonal space models.


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

Classes [hide private]
  BackoffModel
A model to be used by a BackoffBuilder.
  BackoffBuilder
Defines the interface and common functions for models that assign a semantics directly to an input sequence.
  ModelBackoffBuilder
Subclass of BackoffBuilder that handles model loading.
Functions [hide private]
 
merge_repeated_points(path)
A tonal space path, represented as a list of TonalDenotations, gets generated by the models.
source code
Variables [hide private]
  __package__ = 'jazzparser.backoff'
Function Details [hide private]

merge_repeated_points(path)

source code 

A tonal space path, represented as a list of TonalDenotations, gets generated by the models. It may be sensible for a model to generate exactly one point per chord, in which case repeated points ought to be removed from the path before evaluating.

This removes repeated points and returns the result.