t
. It changes both labels and the tree shape.
@param t The input tree (with non-language specific annotation alreadydone, so you need to strip back to basic categories)
@param root The root of the current tree (can be null for words)
@return The fully annotated tree node (with daughters still as youwant them in the final result)
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
.
@param t A tree. Classes implementing this interface can assumethat the tree passed in is not null
.
@return the transformed Tree
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|