public class PruneNodeLeafNumber extends NodeToBePrunedCheckerAbstractClass
numberOfLeavesToKeep
leaves and
discard all subsequent ones.Modifier and Type | Field and Description |
---|---|
protected int |
numberOfLeavesToKeep |
Constructor and Description |
---|
PruneNodeLeafNumber(int sentenceLength) |
public void initPruner()
initPruner
in class NodeToBePrunedCheckerAbstractClass
public boolean isNodeToBePruned(TreeNode node)
isNodeToBePruned
in class NodeToBePrunedCheckerAbstractClass
node
- a TreeNode objectpublic String describe()
describe
in class NodeToBePrunedCheckerAbstractClass
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.