5252# prevTK previous top-k slices (for incremental updates)
5353# prevTKC previous top-k scores (for incremental updates)
5454# encodeLat flag for encoding output lattice for less memory consumption
55- # pruningStrat pruning strategy: 0 all pruning, 1 only score pruning, 2 only size pruning,
56- # 3 only max score pruning, 4 only approx pruning, 5 no pruning
55+ # pruningStrat pruning strategy: 0 all pruning, 1 all exact pruning,
56+ # 2 only score pruning, 3 only max score pruning,
57+ # 4 only size pruning, 5 no pruning
5758# ---------------------------------------------------------------------------------------
5859#
5960# OUTPUT:
@@ -82,7 +83,7 @@ m_incSliceLine = function(
8283 list[unknown] prevLattice = list(), list[unknown] metaPrevLattice = list(),
8384 list[unknown] prevStats = list(), Matrix[Double] prevTK = matrix(0,0,0),
8485 Matrix[Double] prevTKC = matrix(0,0,0), Boolean encodeLat = TRUE,
85- Int pruningStrat = 0 )
86+ Int pruningStrat = 1 )
8687 return(
8788 Matrix[Double] TK, Matrix[Double] TKC, Matrix[Double] D,
8889 list[unknown] L, list[unknown] metaLattice,
@@ -101,11 +102,10 @@ m_incSliceLine = function(
101102 + " -- see documentation for more details.");
102103 }
103104
104- enableIncScorePruning = ( pruningStrat <= 1);
105- enableIncSizePruning = ((pruningStrat == 0) | (pruningStrat == 2));
106- enableIncMaxScorePruning = ((pruningStrat == 0) | (pruningStrat == 3));
107- enableIncApproxPruning = ((pruningStrat == 0) | (pruningStrat == 4));
108- enableIncApproxPruning = FALSE;
105+ enableIncScorePruning = (pruningStrat <= 2);
106+ enableIncSizePruning = (pruningStrat <= 1 | pruningStrat == 4);
107+ enableIncMaxScorePruning = (pruningStrat <= 1 | pruningStrat == 3);
108+ enableIncApproxPruning = (pruningStrat == 0);
109109
110110 t1 = time();
111111
0 commit comments