Package jazzparser :: Package taggers
[hide private]
[frames] | no frames]

Source Code for Package jazzparser.taggers

 1  """Supertagger components.""" 
 2  from tagger import Tagger, process_chord_input 
 3   
 4  TAGGERS = { 
 5      'full' : ('full','Tagger'),                     # Full tagger: all signs with equal probability. 
 6      'fail' : ('fail','Tagger'),                     # Fail tagger: no tags ever. For testing only. 
 7      'candc' : ('candc','CandcMultiTagger'),         # C&C tagger: signs weighted by probabilities. 
 8      'candc-best' : ('candc', 'CandcBestTagger'),    # C&C tagger: just the most probable sign for word. 
 9      'baseline1' : ('baseline1', 'Baseline1Tagger'), # Simplest baseline tagging model 
10      'baseline2' : ('baseline2', 'Baseline2Tagger'), # Another simple baseline tagging model 
11      'baseline3' : ('baseline3', 'Baseline3Tagger'), # Another simple baseline tagging model 
12      'ngram' : ('ngram', 'NgramTagger'),             # Ngram tagger model, using bits of NLTK 
13      'chordclass' : ('segmidi', 'ChordClassMidiTagger'), # Chord class-based HMM tagger for MIDI 
14      'pretagged' : ('pretagged', 'PretaggedTagger'), # Just returns a predefined set of tags 
15      'chordlabel' : ('segmidi.chordlabel', 'ChordLabelNgramTagger'), # Chains together the chord labeler with the ngram tagger 
16      'ngram-multi' : ('ngram_multi', 'MultiChordNgramTagger'), # Ngram chord tagger that can take lattice input 
17  } 
18   
19 -class TaggerTrainingError(Exception):
20 """ For any problems encountered while training a tagging model. """ 21 pass
22