public class MutableTreePruner extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.slf4j.Logger |
log |
| Constructor and Description |
|---|
MutableTreePruner() |
| Modifier and Type | Method and Description |
|---|---|
private void |
applyInterrogativeRules(HAWKQuestion q) |
private boolean |
inorderRemovalBasedOnDependencyLabels(MutableTreeNode node,
MutableTree tree,
String depLabel) |
MutableTree |
prune(HAWKQuestion q) |
private void |
removalBasedOnDependencyLabels(HAWKQuestion q) |
private void |
removalRules(HAWKQuestion q)
removes: * punctuations (.) * wh- words(WDT|WP$) * PRP($) * DT * BY and
IN (possessive) pronouns * PDT predeterminer all both
Who,Where WP|WRB stays in
|
private void |
sortTree(MutableTree tree) |
public MutableTree prune(HAWKQuestion q)
private void sortTree(MutableTree tree)
private void removalBasedOnDependencyLabels(HAWKQuestion q)
private boolean inorderRemovalBasedOnDependencyLabels(MutableTreeNode node, MutableTree tree, String depLabel)
private void applyInterrogativeRules(HAWKQuestion q)
private void removalRules(HAWKQuestion q)
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.