Beispiel #1
0
 def test_get_sign_for_word_by_tag(self):
     """
     @see: L{jazzparser.grammar.Grammar.get_sign_for_word_by_tag}
     
     """
     g = Grammar()
     # Get the list of allowed tags
     tags = g.pos_tags
     # Try a few words
     for chord in self.dbinput.chords[:10]:
         # Try a few tags for each
         for tag in tags[:6]:
             # Should get a sign or None
             sign = g.get_sign_for_word_by_tag(chord, tag)