Package jazzparser :: Package evaluation :: Module results
[hide private]
[frames] | no frames]

Module results

source code

A few simple convenience functions for processing results from evaluation


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

Functions [hide private]
pair
get_top_result(filename)
Loads a top parse result from a ParseResults file and the gold standard result.
source code
 
results_alignment(top_result, gold, grammar=None)
Returns the list of alignment operations that result in the optimal alignment.
source code
 
result_lengths(filename, grammar=None)
Opens the parse results file and returns the lengths of the gold standard path and the top parse result's path.
source code
Variables [hide private]
  __package__ = 'jazzparser.evaluation'
Function Details [hide private]

get_top_result(filename)

source code 

Loads a top parse result from a ParseResults file and the gold standard result.

Returns: pair
gold standard result and top parser result

Note: effectively now moved to ParseResults.get_top_result(). This is just a wrapper for backward compatibility.

results_alignment(top_result, gold, grammar=None)

source code 

Returns the list of alignment operations that result in the optimal alignment.

Returns:
tuple containing the alignment and the two sequences in the form that they were compared (gold, top result).