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

Module hmmpath

source code

Ngram direct semantics models.

Here I use ngram models to assign a tonal-space semantics to an input sequence. This is the model referred to as HmmPath in papers and talks.


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

Classes [hide private]
  HmmPathNgram
An ngram model that takes multiple chords (weighted by probability) as input to its decoding.
  HmmPathModel
Model type that uses an ngram model to assign a tonal space path to a sequence.
  HmmPathBuilder
Builds a semantics using an ngram model.
Functions [hide private]
 
vector(p0, p1)
Vector from p0 to p1, where the ps are points represented as they are internally in the model: (X,Y,x,y).
source code
Variables [hide private]
  __package__ = 'jazzparser.backoff.ngram'
Function Details [hide private]

vector(p0, p1)

source code 

Vector from p0 to p1, where the ps are points represented as they are internally in the model: (X,Y,x,y). (x,y) defines the point in the local (enharmonic) space and is that closest to the previous point when (X,Y) = (0,0). (X,Y) defines a shift of enharmonic space.