feature.java

来自「CRF1.2」· Java 代码 · 共 15 行

JAVA
15
字号
package iitb.CRF;/** * A single feature returned by the FeatureGenerator needs to support this interface. * @author Sunita Sarawagi * */ public interface Feature {    int index(); /** the index of this feature from 0..numFeatures-1. */    int y();  /** has to be a label index from 0..numLabels-1 */    int yprev(); /** can be -1 if the feature is a state, rather than an edge feature */    float value(); /** any real value, don't return anything if 0 for efficiency */    int[] yprevArray(); /** for history of length greater than 1, return array of prev values, will be ignore of history of length 1*/  };

⌨️ 快捷键说明

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