trigramprobability.java
来自「It is the Speech recognition software. 」· Java 代码 · 共 57 行
JAVA
57 行
/* * 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.language.ngram.large;/** * Represents a word ID (third word of a trigram), and a trigram * probability ID. */class TrigramProbability { private int wordID; private int probabilityID; /** * Constructs a TrigramProbability * * @param wordID the ID of the third word in a trigram * @param probabilityID the index into the probability array */ public TrigramProbability(int wordID, int probabilityID) { this.wordID = wordID; this.probabilityID = probabilityID; } /** * Returns the third word ID of this trigram * * @return the third word ID */ public int getWordID() { return wordID; } /** * Returns the bigram probability ID. * * @return the bigram probability ID */ public int getProbabilityID() { return probabilityID; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?