List of usage examples for edu.stanford.nlp.util PropertiesUtils getDouble
public static double getDouble(Properties props, String key, double defaultValue)
From source file:ilcc.ccgparser.nnparser.Config.java
private void setProperties(Properties props) { trainingThreads = PropertiesUtils.getInt(props, "trainingThreads", trainingThreads); wordCutOff = PropertiesUtils.getInt(props, "wordCutOff", wordCutOff); initRange = PropertiesUtils.getDouble(props, "initRange", initRange); maxIter = PropertiesUtils.getInt(props, "maxIter", maxIter); batchSize = PropertiesUtils.getInt(props, "batchSize", batchSize); adaEps = PropertiesUtils.getDouble(props, "adaEps", adaEps); adaAlpha = PropertiesUtils.getDouble(props, "adaAlpha", adaAlpha); regParameter = PropertiesUtils.getDouble(props, "regParameter", regParameter); dropProb = PropertiesUtils.getDouble(props, "dropProb", dropProb); hiddenSize = PropertiesUtils.getInt(props, "hiddenSize", hiddenSize); embeddingSize = PropertiesUtils.getInt(props, "embeddingSize", embeddingSize); numPreComputed = PropertiesUtils.getInt(props, "numPreComputed", numPreComputed); evalPerIter = PropertiesUtils.getInt(props, "evalPerIter", evalPerIter); clearGradientsPerIter = PropertiesUtils.getInt(props, "clearGradientsPerIter", clearGradientsPerIter); saveIntermediate = PropertiesUtils.getBool(props, "saveIntermediate", saveIntermediate); unlabeled = PropertiesUtils.getBool(props, "unlabeled", unlabeled); cPOS = PropertiesUtils.getBool(props, "cPOS", cPOS); noPunc = PropertiesUtils.getBool(props, "noPunc", noPunc); lookAhead = PropertiesUtils.getBool(props, "lookAhead", false); numTokens = (lookAhead) ? 39 : 33;/* ww w . j a v a 2s . c o m*/ }