public abstract class TsurgeonPattern
extends java.lang.Object
Tree
s when
successfully matched on with a TregexMatcher
.Modifier and Type | Method and Description |
---|---|
abstract Tree |
evaluate(Tree t,
TregexMatcher m)
Evaluates the surgery pattern against a
Tree and a TregexMatcher
that has been successfully matched against the tree. |
protected void |
setRoot(edu.stanford.nlp.trees.tregex.tsurgeon.TsurgeonPatternRoot root) |
java.lang.String |
toString() |
protected void setRoot(edu.stanford.nlp.trees.tregex.tsurgeon.TsurgeonPatternRoot root)
public java.lang.String toString()
toString
in class java.lang.Object
public abstract Tree evaluate(Tree t, TregexMatcher m)
Tree
and a TregexMatcher
that has been successfully matched against the tree.t
- The Tree
that has been matched upon; typically this tree will be destructively modified.m
- The successfully matched TregexMatcher
.