edu.cmu.sphinx.result
Class SausageMaker

java.lang.Object
  extended by edu.cmu.sphinx.result.AbstractSausageMaker
      extended by edu.cmu.sphinx.result.SausageMaker
All Implemented Interfaces:
ConfidenceScorer, Configurable

public class SausageMaker
extends AbstractSausageMaker

The SausageMaker takes word lattices as input and turns them into sausages (Confusion Networks) according to Mangu, Brill and Stolcke, "Finding Consensus in Speech Recognition: word error minimization and other applications of confusion networks", Computer Speech and Language, 2000. Note that the getBestHypothesis of the ConfidenceResult object returned by the score method returns the path where all the words have the highest posterior probability within its corresponding time slot.

Author:
pgorniak

Field Summary
 
Fields inherited from class edu.cmu.sphinx.result.AbstractSausageMaker
PROP_LANGUAGE_WEIGHT
 
Constructor Summary
SausageMaker()
          Construct an empty sausage maker
SausageMaker(Lattice l)
          Construct a sausage maker
 
Method Summary
 Sausage makeSausage()
          Turn the lattice contained in this sausage maker into a sausage object.
 ConfidenceResult score(Result result)
          Computes confidences for a Result and returns a ConfidenceResult, a compact representation of all the hypothesis contained in the result together with their per-word and per-path confidences.
 
Methods inherited from class edu.cmu.sphinx.result.AbstractSausageMaker
newProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SausageMaker

public SausageMaker()
Construct an empty sausage maker


SausageMaker

public SausageMaker(Lattice l)
Construct a sausage maker

Parameters:
l - the lattice to construct a sausage from
Method Detail

makeSausage

public Sausage makeSausage()
Turn the lattice contained in this sausage maker into a sausage object.

Returns:
the sausage producing by collapsing the lattice.

score

public ConfidenceResult score(Result result)
Description copied from interface: ConfidenceScorer
Computes confidences for a Result and returns a ConfidenceResult, a compact representation of all the hypothesis contained in the result together with their per-word and per-path confidences.

Parameters:
result - the result to compute confidences for
Returns:
a confidence result
See Also:
ConfidenceScorer.score(edu.cmu.sphinx.result.Result)