protected void stripTag(Tree t) { if ( ! t.isLeaf()) { String label = cleanUpLabel(t.value()); t.setValue(label); for (Tree child : t.getChildrenAsList()) { stripTag(child); } } }
@Override public Tree transformTree(Tree t) { //deal with empty root t.setValue(cleanUpRoot(t.value())); //strips tags stripTag(t); // strip empty nodes return stripEmptyNode(t); }
public Tree transformTree(Tree t) { //deal with empty root t.setValue(cleanUpRoot(t.value())); //strips tags stripTag(t); // strip empty nodes return stripEmptyNode(t); }
protected void stripTag(Tree t) { if ( ! t.isLeaf()) { String label = cleanUpLabel(t.value()); t.setValue(label); for (Tree child : t.getChildrenAsList()) { stripTag(child); } } }
@Override public Tree transformTree(Tree t) { //deal with empty root t.setValue(cleanUpRoot(t.value())); //strips tags stripTag(t); // strip empty nodes return stripEmptyNode(t); }
protected void stripTag(Tree t) { if ( ! t.isLeaf()) { String label = cleanUpLabel(t.value()); t.setValue(label); for (Tree child : t.getChildrenAsList()) { stripTag(child); } } }
@Override public Tree transformTree(Tree t) { //deal with empty root t.setValue(cleanUpRoot(t.value())); //strips tags stripTag(t); // strip empty nodes return stripEmptyNode(t); }
protected void stripTag(Tree t) { if ( ! t.isLeaf()) { String label = cleanUpLabel(t.value()); t.setValue(label); for (Tree child : t.getChildrenAsList()) { stripTag(child); } } }
public Tree transformTree(Tree t) { //deal with empty root t.setValue(cleanUpRoot(t.value())); //strips tags stripTag(t); // strip empty nodes return stripEmptyNode(t); }
protected void stripTag(Tree t) { if ( ! t.isLeaf()) { String label = cleanUpLabel(t.value()); t.setValue(label); for (Tree child : t.getChildrenAsList()) { stripTag(child); } } }