|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.result.SausageMaker
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.
Field Summary | |
static java.lang.String |
PROP_LANGUAGE_WEIGHT
Sphinx property that defines the language model weight. |
static float |
PROP_LANGUAGE_WEIGHT_DEFAULT
The default value for the PROP_LANGUAGE_WEIGHT property |
Constructor Summary | |
SausageMaker()
Construct an empty sausage maker |
|
SausageMaker(Lattice l)
Construct a sausage maker |
Method Summary | |
java.lang.String |
getName()
Retrieves the name for this configurable component |
Sausage |
makeSausage()
Turn the lattice contained in this sausage maker into a sausage object. |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component has new data. |
void |
register(java.lang.String name,
Registry registry)
Register my properties. |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROP_LANGUAGE_WEIGHT
public static final float PROP_LANGUAGE_WEIGHT_DEFAULT
Constructor Detail |
public SausageMaker()
public SausageMaker(Lattice l)
l
- the lattice to construct a sausage fromMethod Detail |
public void register(java.lang.String name, Registry registry) throws PropertyException
Configurable
register
in interface Configurable
name
- the name of the componentregistry
- the registry for this component
PropertyException
Configurable.register(java.lang.String,
edu.cmu.sphinx.util.props.Registry)
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.Configurable.newProperties(edu.cmu.sphinx.util.props.PropertySheet)
public java.lang.String getName()
Configurable
getName
in interface Configurable
Configurable.getName()
public Sausage makeSausage()
public ConfidenceResult score(Result result)
ConfidenceScorer
score
in interface ConfidenceScorer
result
- the result to compute confidences for
ConfidenceScorer.score(edu.cmu.sphinx.result.Result)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |