learner.java

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

JAVA
69
字号
/* * 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 java.io.IOException;import edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer.TrainerScore;/** * Provides mechanisms for computing statistics given a set of states * and input data. */public interface  Learner {    /**     * Starts the Learner.     */    public void start();    /**     * Stops the Learner.     */    public void stop();    /**     * Sets the learner to use a utterance.     *     * @param utterance the utterance     *     * @throws IOException     */    public void setUtterance(Utterance utterance) throws IOException;    /**     * Initializes computation for current utterance and utterance graph.     *     * @param utterance the current utterance     * @param graph the current utterance graph     *     * @throws IOException     */    public void initializeComputation(Utterance utterance, 		      UtteranceGraph graph)  throws IOException;    /**     * Implements the setGraph method. Since the flat initializer does     * not need a graph, this method produces an error.     *     * @param graph the graph     */    public void setGraph(UtteranceGraph graph);    /**     * Gets posterior probabilities for a given state.     */    public TrainerScore[] getScore();}

⌨️ 快捷键说明

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