redpony/cdec — pull request #8 by alopez (2012-09-04 17:15:36+00:00)
Title: Adds minimal ability to pass context to feature functions

Currently backwards compatible. New contextual information is passed to scorer via a namedtuple with a whole bunch of fields. Information being passed hasn't been tested, but should be:

input_span = (i,j)
matches = list of tuples
test_sentence = whatever was given to the rulefactory in the first place