edu.cmu.sphinx.decoder
Class BatchResults

java.lang.Object
  extended byedu.cmu.sphinx.decoder.BatchResults

public class BatchResults
extends java.lang.Object

Provides summary results for a batch run of the decoder


Constructor Summary
BatchResults(int numWords, int numSentences, int subErrors, int insErrors, int delErrors, int sentenceErrors)
          Creates a new BatchResults with the given parameters
 
Method Summary
 int getDelErrors()
          Gets the number of deletion errors
 int getInsErrors()
          Gets the number of insertion errors
 int getNumSentences()
          Gets the number of reference sentences
 int getNumWords()
          Gets the number of reference words
 int getSentenceErrors()
          Gets the number of sentence errors
 int getSubErrors()
          Gets the number of substitution errors
 int getTotalErrors()
          Gets the total number of errors
 float getWER()
          Gets the word error rate return the word error rate as a percentage
 java.lang.String toString()
          Outputs a string representation of this batch result
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchResults

public BatchResults(int numWords,
                    int numSentences,
                    int subErrors,
                    int insErrors,
                    int delErrors,
                    int sentenceErrors)
Creates a new BatchResults with the given parameters

Parameters:
numWords - the total number of reference words
numSentences - the total number of sentences recognized
subErrors - the number of substitution errors
insErrors - the number of insertion errors
delErrors - the number of deletion errors
sentenceErrors - the number of sentence errors
Method Detail

getWER

public float getWER()
Gets the word error rate return the word error rate as a percentage


getNumWords

public int getNumWords()
Gets the number of reference words

Returns:
the number of reference words

getNumSentences

public int getNumSentences()
Gets the number of reference sentences

Returns:
the number of reference sentences

getSubErrors

public int getSubErrors()
Gets the number of substitution errors

Returns:
the number of substitution errors

getInsErrors

public int getInsErrors()
Gets the number of insertion errors

Returns:
the number of insertion errors

getDelErrors

public int getDelErrors()
Gets the number of deletion errors

Returns:
the number of deletion errors

getSentenceErrors

public int getSentenceErrors()
Gets the number of sentence errors

Returns:
the number of sentence errors

getTotalErrors

public int getTotalErrors()
Gets the total number of errors

Returns:
the total number of errors

toString

public java.lang.String toString()
Outputs a string representation of this batch result