edu.cmu.sphinx.result
Interface Path

All Known Implementing Classes:
WordResultPath

public interface Path

Represents a path of words through the recognition result lattice. All scores are maintained in the logMath log domain


Method Summary
 double getConfidence()
          Returns a log confidence score for this path.
 LogMath getLogMath()
          Returns the log math for the scores of this path.
 double getScore()
          Gets the total score for this path.
 java.lang.String getTranscription()
          Gets the transcription of the path.
 WordResult[] getWords()
          Gets the ordered set of words for this path
 java.lang.String toString()
          Returns a string representation of this object
 

Method Detail

getScore

public double getScore()
Gets the total score for this path. Scores are in the LogMath log domain

Returns:
the score for the path in the LogMath log domaain.

getConfidence

public double getConfidence()
Returns a log confidence score for this path. Use the getLogMath().logToLinear() method to convert the log confidence score to linear. The linear value should be between 0.0 and 1.0 (inclusive).

Returns:
a log confidence score which linear value is between 0.0 and 1.0 (inclusive)

getLogMath

public LogMath getLogMath()
Returns the log math for the scores of this path.

Returns:
the log math

getWords

public WordResult[] getWords()
Gets the ordered set of words for this path

Returns:
an array containing zero or more words

getTranscription

public java.lang.String getTranscription()
Gets the transcription of the path.

Returns:
the transcription of the path.

toString

public java.lang.String toString()
Returns a string representation of this object