numWrong += result.second;
}
}
return new Triple<List<Update>, Integer, Integer>(updates, numCorrect, numWrong);
}
<BUG>private void trainAndSave(String trainTreebankPath, FileFilter trainTreebankFilter,
String devTreebankPath, FileFilter devTreebankFilter,
String serializedPath) {
List<Tree> binarizedTrees = readBinarizedTreebank(trainTreebankPath, trainTreebankFilter);
int nThreads = op.trainOptions.trainingThreads;</BUG>
nThreads = nThreads <= 0 ? Runtime.getRuntime().availableProcessors() : nThreads;

numWrong += result.second;
}
}
return new Triple<List<Update>, Integer, Integer>(updates, numCorrect, numWrong);
}
private void trainAndSave(List<Pair<String, FileFilter>> trainTreebankPath,
Pair<String, FileFilter> devTreebankPath,
String serializedPath) {
List<Tree> binarizedTrees = Generics.newArrayList();
for (Pair<String, FileFilter> treebank : trainTreebankPath) {
binarizedTrees.addAll(readBinarizedTreebank(treebank.first(), treebank.second()));
}
int nThreads = op.trainOptions.trainingThreads;
nThreads = nThreads <= 0 ? Runtime.getRuntime().availableProcessors() : nThreads;
