Skip to content

Commit 77836a9

Browse files
committed
Make the -prune parameter take an explicit boolean parameter
so it can actually be set to false (the default is true).
1 parent d277d90 commit 77836a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gate/plugin/learningframework/engines/EngineMalletClass.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void initializeAlgorithm(Algorithm algorithm, String parms) {
122122
// there are parameters, so if it is one of the algorithms were we support setting
123123
// a parameter do this
124124
if (algorithm.equals(AlgorithmClassification.MALLET_CL_C45)) {
125-
Parms ps = new Parms(parms, "m:maxDepth:i", "p:prune:b","n:minNumInsts:i");
125+
Parms ps = new Parms(parms, "m:maxDepth:i", "p:prune:B","n:minNumInsts:i");
126126
int maxDepth = (int)ps.getValueOrElse("maxDepth", 0);
127127
int minNumInsts = (int)ps.getValueOrElse("minNumInsts", 2);
128128
boolean prune = (boolean)ps.getValueOrElse("prune",true);

0 commit comments

Comments
 (0)