public class TreeFunctions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<Tree,Tree> |
getLabeledToDescriptiveCoreLabelTreeFunction()
Returns a function which takes a tree with any label class
where the labels might have an interesting description, such
as a CategoryWordTag which goes "cat [T/W]", and returns a new
tree with CoreLabels which contain the toString() of each of
the input labels.
|
static java.util.function.Function<Tree,Tree> |
getLabeledTreeToCategoryWordTagTreeFunction()
Return a Function that maps from StringLabel labeled trees to
LabeledScoredTrees with a CategoryWordTag label.
|
static java.util.function.Function<Tree,Tree> |
getLabeledTreeToStringLabeledTreeFunction()
Return an Function that maps from Label-labeled trees (any
implementing class) to LabeledScored trees with a StringLabel
label.
|
static void |
main(java.lang.String[] args)
This method just tests the functionality of the included transformers.
|
public static java.util.function.Function<Tree,Tree> getLabeledTreeToStringLabeledTreeFunction()
public static java.util.function.Function<Tree,Tree> getLabeledTreeToCategoryWordTagTreeFunction()
public static java.util.function.Function<Tree,Tree> getLabeledToDescriptiveCoreLabelTreeFunction()
public static void main(java.lang.String[] args)