public abstract class TsurgeonPattern extends Object
Trees 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) |
String |
toString() |
protected void setRoot(edu.stanford.nlp.trees.tregex.tsurgeon.TsurgeonPatternRoot root)
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.