utterancehmmgraph.java

来自「It is the Speech recognition software. 」· Java 代码 · 共 54 行

JAVA
54
字号
/* * Copyright 1999-2002 Carnegie Mellon University. * Portions Copyright 2002 Sun Microsystems, Inc. * Portions Copyright 2002 Mitsubishi Electric Research Laboratories. * All Rights Reserved.  Use is subject to license terms. * * See the file "license.terms" for information on usage and * redistribution of this file, and for a DISCLAIMER OF ALL * WARRANTIES. * */package edu.cmu.sphinx.trainer;import edu.cmu.sphinx.linguist.acoustic.AcousticModel;/** * Defines the Utterance Graph. */public class UtteranceHMMGraph extends Graph implements UtteranceGraph {    /**     * Constructor for class UtteranceHMMGraph.     */    public UtteranceHMMGraph(String context, Utterance utterance, 			     AcousticModel acousticModel) {	super();	Transcript currentTranscript;	Graph transcriptGraph;	for (utterance.startTranscriptIterator();	     utterance.hasMoreTranscripts(); ) {	    /* The transcript object has a pointer to its own dictionary 	     */	    Transcript transcript = utterance.nextTranscript();	    transcriptGraph = new TranscriptHMMGraph(context, transcript,						     acousticModel);	    add(transcriptGraph);	}    }    /**     * Add a transcript graph to the current utterance graph.     *     * @param transcriptGraph the transcript graph     */    public void add(Graph transcriptGraph) {	// Implementation requires a single transcript per	// utterance. The copy will fail if the current utterance	// graph is not empty.	copyGraph(transcriptGraph);    }    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?