| Trees | Indices | Help |
|
|---|
|
|
Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>
|
|||
| |||
|
|||
|
InputReader Superclass for all sorts of input. |
|||
|
Input Superclass for different types of input wrapper. |
|||
|
DbInput Wrapper for input from the database, rather than the command line. |
|||
|
WeightedChordLabelInput Input wrapper for a lattice of chord labels, including a set of chord labels for each timestep, each with a probability. |
|||
|
ChordInput Input wrapper for textual chord input. |
|||
|
SegmentedMidiInput Input wrapper for MIDI files with extra information about segmentation, in the form it's needed for the Raphael and Stoddard model and midi supertagging models: that is, offset (start of first bar) and bar length. |
|||
|
AnnotatedDbInput Like DbInput, but stores category annotations along with the chords. |
|||
|
BulkInput Ways of accepting multiple inputs at once. |
|||
|
DbBulkInput A file containing a list of chord sequences. |
|||
|
ChordBulkInput A file containing a list of textual chord sequences. |
|||
|
SegmentedMidiBulkInput A CSV file containing midi file paths and the parameters for segmenting each one. |
|||
|
AnnotatedDbBulkInput Like DbBulkInput, but for AnnotatedDbInput. |
|||
|
MidiTaggerTrainingBulkInput Subclass of SegmentedMidiBulkInput for taking training input for midi supertaggers. |
|||
| InputTypeError | |||
| InputReadError | |||
|
|||
|
|||
|
|||
|
|||
|
|||
| (type name, input) pair |
|
||
| InputReader subclass |
|
||
|
|||
INPUT_TYPES =
|
|||
BULK_INPUT_TYPES =
|
|||
__package__ =
|
|||
|
|||
Preprocesses input. The input may be already wrapped using one of the wrappers in this module, or it may be a string. In this case it will be wrapped using ChordInput and the result will be returned.
|
Utility function for processing file input options from the command line. Pass in as args the values straight from the command line options to select a filename, filetype and list of options. Typical command-line options for this purpose (for an optparse option
parser
op.add_option("--file", "-f", dest="file", action="store", help="use a file to get input from")
op.add_option("--filetype", "--ft", dest="filetype", action="store", help="select the file type for the input file. Use '--filetype help' for a list of available types")
op.add_option("--file-options", "--fopt", dest="file_options", action="store", help="options for the input file. Use '--fopt help', with '--ft <type>', for a list of available options")
Then you can call this function as: command_line_input(filename=options.file, filetype=options.filetype, options=options.file_options)
|
|
|||
INPUT_TYPES
|
BULK_INPUT_TYPES
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:55 2012 | http://epydoc.sourceforge.net |