📄 learner.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 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -