public class FTBCorrector extends java.lang.Object implements TreeTransformer
Also discards two trees of the form (SENT .), which appear in the Candito training set.
Constructor and Description |
---|
FTBCorrector() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
Tree |
transformTree(Tree t)
Does whatever one needs to do to a particular tree.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Tree transformTree(Tree t)
TreeTransformer
Tree
, and could itself
work recursively, but the canonical usage is to invoke this method
via the Tree.transform()
method, which will apply the
transformer in a bottom-up manner to each local Tree
,
and hence the implementation of TreeTransformer
should
merely examine and change a local (one-level) Tree
.transformTree
in interface TreeTransformer
t
- A tree. Classes implementing this interface can assume
that the tree passed in is not null
.Tree
public static void main(java.lang.String[] args)
args
-