branchstate.java

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

JAVA
41
字号
package edu.cmu.sphinx.linguist.flat;/** * Represents a branching node in a grammar * */public class BranchState extends SentenceHMMState {    /**     * Creates a branch state     *     * @param nodeID the grammar node id     */    public BranchState(String leftContext, String rightContext, int nodeID) {	super("B" + "[" + leftContext +"," +                rightContext + "]", null, nodeID);    }    /**     * Retrieves a short label describing the type of this state.     * Typically, subclasses of SentenceHMMState will implement this     * method and return a short (5 chars or less) label     *     * @return the short label.     */    public String getTypeLabel() {	return "Brnch";    }    /**     * Returns the state order for this state type     *     * @return the state order     */    public int getOrder() {        return 2;    }}

⌨️ 快捷键说明

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