| Trees | Indices | Help |
|
|---|
|
|
object --+
|
ParseResults
A simple wrapper object to store the results of a parse, plus the gold standard result, so that they can easily be dumped out to a file using pickle.
The gold parse may be omitted if it's not available. Alternatively,
you may store an annotated sequence as your gold standard: this should go
in gold_sequence. You may, of course, store both.
Note:
this used to store a list of logical forms. Now it can store signs
as well: in this case, the logical form can be found in
sign.semantics for any sign and signs
should be True.
|
|||
| LoadError | |||
|
|||
|
|||
|
|||
|
|||
|
|||
| pair |
|
||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
parses List of (probability,interpretation) tuples, where the interpretation is a sign parse result, or a logical form. |
|||
|
gold_parse The interpretation (tonal space semantics) given by the gold standard. |
|||
|
signs True is the stored parses are signs and not logical forms. |
|||
|
gold_sequence Gold standard interpretation in the form of an annotated chord sequence. |
|||
|
timed_out True if the parse timed out (might still have results from a backoff model). |
|||
|
cpu_time Time taken for the parse, measured in CPU time (not wall clock). |
|||
|
|||
|
sorted_results The list of results (TS interpretations or signs) ordered by descending probability. |
|||
|
semantics Always returns a list of (probability,semantics) pairs, whether or not the results were stored as signs. |
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Always returns a list of (probability,semantics) pairs, whether or not the results were stored as signs. The results are sorted by descending probability. |
Tries to return a gold standard semantics. In some cases this is
stored along with the results in In other cases neither is available. Then |
Loads the top parse result and the gold standard result. Both a None if there are no results.
|
|
|||
parsesList of (probability,interpretation) tuples, where the interpretation
is a sign parse result, or a logical form. Which is used should be
reflected in |
|
|||
sorted_resultsThe list of results (TS interpretations or signs) ordered by descending probability.
|
semanticsAlways returns a list of (probability,semantics) pairs, whether or not the results were stored as signs. The results are sorted by descending probability.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |