statepath.java

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

JAVA
67
字号
/* * 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.linguist.flat;/** * Represents a path in a SentenceHMM. The path includes the * particular state, and the states left context.  This is used while * building/compiling a SentenceHMM */public class StatePath {    SentenceHMMState state;    ContextBucket context;    /**     * Creates a StatePath     *     * @param state the state for the StatePath     * @param context the context bucket     */    StatePath(SentenceHMMState state, ContextBucket context) {	this.state = state;	this.context = context;    }    /**     * Retrieves the state for the state path     *     * @return the state     */    SentenceHMMState getState() {	return state;    }    /**     * Retrieves the context for the state path     *     * @return the context     */    ContextBucket getContext() {	return context;    }    /**     * Returns the string representation for this StatePath     *     * @return the string representation     */    public String toString() {	return state.toString() + " " + context.toString();    }}

⌨️ 快捷键说明

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