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

Class BackoffBuilder

source code

object --+
         |
        BackoffBuilder
Known Subclasses:

Defines the interface and common functions for models that assign a semantics directly to an input sequence.

The evaluation interface is similar to the Tagger interface.

Instance Methods [hide private]
 
__init__(self, input, options={}, logger=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_get_name(self) source code
 
_get_input_length(self)
Should return the number of words (chords) in the input, or some other measure of input length appropriate to the type of input.
source code
jazzparser.formalisms.base.semantics.lambdacalc.Semantics subclass instance
get_tonal_space_path(self, rank=0)
This is the main interface method.
source code
 
get_all_paths(self)
Gets a list of all the tonal space paths, highest rank first.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
check_options(cls, options) source code
Class Variables [hide private]
  BUILDER_OPTIONS = []
Properties [hide private]
  num_paths
  name
  input_length
Should return the number of words (chords) in the input, or some other measure of input length appropriate to the type of input.

Inherited from object: __class__

Method Details [hide private]

__init__(self, input, options={}, logger=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_tonal_space_path(self, rank=0)

source code 

This is the main interface method.

Parameters:
  • rank (int) - the rank of the path the get, where 0 is the highest ranked path
Returns: jazzparser.formalisms.base.semantics.lambdacalc.Semantics subclass instance
the rankth highest ranked path through the tonal space for this sequence. Returns None if there is no path with this rank.

get_all_paths(self)

source code 

Gets a list of all the tonal space paths, highest rank first. Just a convenience method to get all the paths using get_tonal_space_path for every rank (self.num_paths).


Property Details [hide private]

num_paths

Get Method:
unreachable.num_paths(self)

name

Get Method:
_get_name(self)

input_length

Should return the number of words (chords) in the input, or some other measure of input length appropriate to the type of input.

Get Method:
_get_input_length(self) - Should return the number of words (chords) in the input, or some other measure of input length appropriate to the type of input.