edu.cmu.sphinx.decoder.search
Class AlternateHypothesisManager

java.lang.Object
  extended byedu.cmu.sphinx.decoder.search.AlternateHypothesisManager

public class AlternateHypothesisManager
extends java.lang.Object

Created by IntelliJ IDEA. User: woelfel Date: Jun 16, 2003 Time: 11:45:05 AM To change this template use Options | File Templates.


Constructor Summary
AlternateHypothesisManager(int maxEdges)
          Creates an alternate hypotheses manager
 
Method Summary
 void addAlternatePredecessor(Token token, Token predecessor)
          Collects adds alternate predecessors for a token that would have lost because of viterbi.
 void changeSuccessor(Token newSuccessor, Token oldSuccessor)
          Chantge the successor from one token to another
 java.util.List getAlternatePredecessors(Token token)
          Returns a list of alternate predecessors for a token.
 void purge()
          Purge all but max number of alternate preceding token hypotheses.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlternateHypothesisManager

public AlternateHypothesisManager(int maxEdges)
Creates an alternate hypotheses manager

Parameters:
maxEdges - the maximum edges allowed
Method Detail

addAlternatePredecessor

public void addAlternatePredecessor(Token token,
                                    Token predecessor)
Collects adds alternate predecessors for a token that would have lost because of viterbi.

Parameters:
token - - a token that has an alternate lower scoring predecessor that still might be of interest
predecessor - - a predecessor that scores lower than token.getPredecessor().

getAlternatePredecessors

public java.util.List getAlternatePredecessors(Token token)
Returns a list of alternate predecessors for a token.

Parameters:
token - - a token that may have alternate lower scoring predecessor that still might be of interest
Returns:
A list of predecessors that scores lower than token.getPredecessor().

purge

public void purge()
Purge all but max number of alternate preceding token hypotheses.


changeSuccessor

public void changeSuccessor(Token newSuccessor,
                            Token oldSuccessor)
Chantge the successor from one token to another

Parameters:
newSuccessor - the new successor token
oldSuccessor - the old successor token