Collects statistics over a sequence of (candidate parse, gold parse) pairs.
Collects statistics over a sequence of (candidate parse, gold parse) pairs.
Essentially this simply iterates through the candidate and gold parses. For each parse pair, it notifies the desired ParseStatistics.
an Iterator over candidate parses (can be None if a parse failure occurred)
an Iterator over gold parses
a set of ParseStatistic objects (they collect the statistics via their .notify() method)