| Trees | Indices | Help |
|
|---|
|
|
FormalismBase.Evaluation --+
|
Formalism.Evaluation
Functions for evaluating tonal space paths and parse results.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Performs an alignment of two tonal space paths and returns a dictionary of costs incurred in the optimal alignment. The values must include 'deletions', 'substitutions' and 'insertions' and may also include more fine-grained information, like 'root_subs' and 'function_subs'.
|
Performs an alignment of two tonal space paths and computes a distance metric between them. The metric is assumed to be based on edit distance, so to have a minimum value of 0 (identity) and maximum the length of the longer sequence.
|
Assigns a score to the optimal alignment between the two logical forms. Think of this as essentially a count of alignments in the optimal alignment. In fact, a pair of points may be partly aligned, in which case they contribute something to this score between 0 and 1. |
Performs the same algorithm as tonal_space_distance and tonal_space_alignment_costs, but returns a list of the operations that produce the optimal alignment: "I" - insertion; "D" - deletion; "A" - alignment; "S" - full substitution; or anything else beginning with "S" to indicate a partial substitution. Returns the operation list and the two sequences that were compared. If distance=True, also includes the distance metric. Not included by default for backward compatibility. |
Number of points on the tonal space path represented by the semantics |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:57 2012 | http://epydoc.sourceforge.net |