⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utterancehmmgraph.java

📁 It is the Speech recognition software. It is platform independent. To execute the source code,
💻 JAVA
字号:
/* * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -