Some basic utilities used by the C&C tagger interface.
|
|
untag_sequence_data(sequence)
Given a line read in from a file containing C&C-style tagged
data, returns a version of the line with the tags stripped off,
leaving just the chord sequence. |
source code
|
|
|
|
|
|
|
training_sequence_to_candc(sequence)
Given a line of data in the format we use for training data, converts
it to a format suitable for direct input to the C&C training
tool. |
source code
|
|
|
|
training_data_to_candc(lines)
Performs the same as training_sequence_to_candc, but on a whole data
set (list of sequences). |
source code
|
|
|
|
_sequence_to_candc_format(formatter,
sequence)
Produces a string representation of observations to be used as
training data for a C&C model from a chord sequence internal
model. |
source code
|
|
|
|
|
|
|
| sequence_to_candc_pos(sequence,
type_map=None) |
source code
|
|
|
|
| sequence_to_candc_chord_super(sequence,
type_map=None) |
source code
|
|
|
|
| sequence_to_candc_super(sequence,
type_map=None) |
source code
|
|
|
|
sequence_index_to_candc_chord_super(si,
*args,
**kwargs)
Given a SequenceIndex object containing sequence data, produces
C&C training data as a single string. |
source code
|
|
|
|
sequence_list_to_candc_chord_super(sequences,
*args,
**kwarg)
Given a list of sequences, produces C&C training data as a single
string. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|