eu.anorien.mhl.pruner
Interface PrunerFactory


public interface PrunerFactory

Creates new pruners.


Method Summary
 Pruner newBestKPruner(int k)
          Prunes all but the best K leaves of the hypotheses tree.
 Pruner newCompositePruner(java.util.List<Pruner> pruners)
          Applies sequentially a series of pruners.
 Pruner newCompositePruner(Pruner[] pruners)
          Applies sequentially a series of pruners.
 Pruner newNullPruner()
          Creates a new null pruner.
 Pruner newTreeDepthPruner(int depth)
          Creates a new tree depth pruner.
 

Method Detail

newNullPruner

Pruner newNullPruner()
Creates a new null pruner. This pruner does not prune any leaves or branches of the tree.


newBestKPruner

Pruner newBestKPruner(int k)
Prunes all but the best K leaves of the hypotheses tree.

Parameters:
k - The number of leaves to leave at each hypothesis tree after pruning.

newTreeDepthPruner

Pruner newTreeDepthPruner(int depth)
Creates a new tree depth pruner. Does not allow the hypothesis trees to grow beyond the depth provided in the argument.

Parameters:
depth - Maximum depth of the hypothesis tree.

newCompositePruner

Pruner newCompositePruner(java.util.List<Pruner> pruners)
Applies sequentially a series of pruners.


newCompositePruner

Pruner newCompositePruner(Pruner[] pruners)
Applies sequentially a series of pruners.