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

Package data

source code

Data structures for the Jazz Parser.

Basic data types for the Jazz Parser.


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Submodules [hide private]

Classes [hide private]
  Chord
A Chord object represents a single chord in an input sequence to the parser.
  DerivationTrace
Stores a trace of the derivation of a particular CCGCategory node and is associated with that category.
  Fraction
Stores a rational fraction as a numerator and denominator.
  HashSet
A simple implementation of a hash table using a dictionary.
Functions [hide private]
 
euclid(num1, num2) source code
Variables [hide private]
  logger = logging.getLogger("main_logger")
  ROMAN_REGEX = re.compile(r'(?x)^(?P<root>(?P<accidental>[b#])?...
  PITCH_REGEX = re.compile(r'(?x)^(?P<root>(?P<pitch>[A-G])(?P<a...
  __package__ = 'jazzparser.data'
Variables Details [hide private]

ROMAN_REGEX

Value:
re.compile(r'(?x)^(?P<root>(?P<accidental>[b#])?(?P<numeral>I{1,3}|I?V\
|VI{,2}|X|Y|Z))(?P<type>m(7|,b5|,M7)?|aug(7|,M7)?|o7|%7|sus4(,7)?|b5(,\
7|M7)?|M7|7|#5,m7)?(\((?P<additions>6|9|b9|b10|13|\+9|\+11)\))?$')

PITCH_REGEX

Value:
re.compile(r'(?x)^(?P<root>(?P<pitch>[A-G])(?P<accidental>[b#])?)(?P<t\
ype>m(7|,b5|,M7)?|aug(7|,M7)?|o7|%7|sus4(,7)?|b5(,7|M7)?|M7|7|#5,m7)?(\
\((?P<additions>6|9|b9|b10|13|\+9|\+11)\))?$')