datadesc.java

来自「这是一个CRF(条件随机域)算法的实现,希望能对从事算法的有些帮助.」· Java 代码 · 共 25 行

JAVA
25
字号
package iitb.MaxentClassifier;import iitb.Utils.*;/** * * @author Sunita Sarawagi * */ class DataDesc {    int numColumns;    int numLabels = 2;    String colSep = ",";    DataDesc(Options opts) throws ConfigException {	if (opts.getProperty("numLabels") != null) {	    numLabels = opts.getInt("numLabels");	}	if (opts.getMandatoryProperty("numColumns") != null) {	    numColumns = opts.getInt("numColumns");	}	if (opts.getProperty("separator") != null) {	    colSep = opts.getString("separator");	}    }};

⌨️ 快捷键说明

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