* leaf out of which the treeFactory is vended.
*/
@Override
public TreeFactory treeFactory() {
return new TreeFactory() {
TreeFactory lstf = new LabeledScoredTreeFactory();
public Tree newLeaf(Label l) {
return new EmptyTreeLeaf<EmptyType>(l, emptyType(), traceTo());
}
public Tree newLeaf(String str) {
return new EmptyTreeLeaf<EmptyType>(new StringLabel(str), emptyType(), traceTo());
}
public Tree newTreeNode(Label l, List<Tree> kids) {
return lstf.newTreeNode(l, kids);
}
public Tree newTreeNode(String str, List<Tree> kids) {
return lstf.newTreeNode(str, kids);
}
};
}