public class DescriptionPattern extends TregexPattern
TregexPattern.TRegexTreeReaderFactory
Constructor and Description |
---|
DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation rel,
boolean negDesc,
java.lang.String desc,
java.lang.String name,
boolean useBasicCat,
java.util.function.Function<java.lang.String,java.lang.String> basicCatFunction,
java.util.List<Pair<java.lang.Integer,java.lang.String>> variableGroups,
boolean isLink,
java.lang.String linkedName) |
DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation newRelation,
DescriptionPattern oldPattern) |
Modifier and Type | Method and Description |
---|---|
java.util.List<TregexPattern> |
getChildren() |
java.lang.String |
localString() |
TregexMatcher |
matcher(Tree root,
Tree tree,
java.util.IdentityHashMap<Tree,Tree> nodesToParents,
java.util.Map<java.lang.String,Tree> namesToNodes,
edu.stanford.nlp.trees.tregex.VariableStrings variableStrings,
HeadFinder headFinder) |
void |
setChild(TregexPattern n) |
java.lang.String |
toString() |
compile, main, matcher, matcher, pattern, prettyPrint, prettyPrint, prettyPrint, safeCompile
public DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation rel, boolean negDesc, java.lang.String desc, java.lang.String name, boolean useBasicCat, java.util.function.Function<java.lang.String,java.lang.String> basicCatFunction, java.util.List<Pair<java.lang.Integer,java.lang.String>> variableGroups, boolean isLink, java.lang.String linkedName)
public DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation newRelation, DescriptionPattern oldPattern)
public java.lang.String localString()
public java.lang.String toString()
toString
in class TregexPattern
public void setChild(TregexPattern n)
public java.util.List<TregexPattern> getChildren()
public TregexMatcher matcher(Tree root, Tree tree, java.util.IdentityHashMap<Tree,Tree> nodesToParents, java.util.Map<java.lang.String,Tree> namesToNodes, edu.stanford.nlp.trees.tregex.VariableStrings variableStrings, HeadFinder headFinder)