package iitb.MaxentClassifier; import iitb.Utils.*; /** * * @author Sunita Sarawagi * */ public class DataDesc { public int numColumns; int numLabels = 2; String colSep = ","; public 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"); } } public int getNumLabels() { return numLabels; } public void setNumLabels(int numLabels) { this.numLabels = numLabels; } };