edu.cmu.sphinx.result
Class TokenGraphDumper

java.lang.Object
  extended byedu.cmu.sphinx.result.TokenGraphDumper

public class TokenGraphDumper
extends java.lang.Object

Dumps out the GDL graph of all the result token chains in a Result, as well as all the alternate hypotheses along those chains.


Constructor Summary
TokenGraphDumper(Result result)
          Constructs a TokenGraphDumper from the given result.
 
Method Summary
 java.lang.String dumpGDL(java.lang.String title)
          Dumps the GDL output.
 void dumpGDL(java.lang.String title, java.lang.String fileName)
          Dumps the GDL output of the search space to the given file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenGraphDumper

public TokenGraphDumper(Result result)
Constructs a TokenGraphDumper from the given result.

Parameters:
result - The result which search space we want to dump.
Method Detail

dumpGDL

public void dumpGDL(java.lang.String title,
                    java.lang.String fileName)
Dumps the GDL output of the search space to the given file.

Parameters:
title - the title of the GDL graph
fileName -

dumpGDL

public java.lang.String dumpGDL(java.lang.String title)
Dumps the GDL output.

Parameters:
title - the title of the GDL graph
Returns:
the GDL output string