public abstract class TsurgeonPattern
extends java.lang.Object
Trees when
successfully matched on with a TregexMatcher.| Modifier and Type | Method and Description |
|---|---|
abstract Tree |
evaluate(Tree t,
TregexMatcher m)
Evaluates the 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.Objectpublic 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