Package edu.stanford.nlp.trees.tregex
Class DescriptionPattern
- java.lang.Object
-
- edu.stanford.nlp.trees.tregex.TregexPattern
-
- edu.stanford.nlp.trees.tregex.DescriptionPattern
-
- All Implemented Interfaces:
Serializable
public class DescriptionPattern extends TregexPattern
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.stanford.nlp.trees.tregex.TregexPattern
TregexPattern.TRegexTreeReaderFactory
-
-
Constructor Summary
Constructors Constructor Description DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation rel, boolean negDesc, String desc, String name, boolean useBasicCat, Function<String,String> basicCatFunction, List<Pair<Integer,String>> variableGroups, boolean isLink, String linkedName)DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation newRelation, DescriptionPattern oldPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TregexPattern>getChildren()StringlocalString()TregexMatchermatcher(Tree root, Tree tree, IdentityHashMap<Tree,Tree> nodesToParents, Map<String,Tree> namesToNodes, VariableStrings variableStrings, HeadFinder headFinder)voidsetChild(TregexPattern n)StringtoString()-
Methods inherited from class edu.stanford.nlp.trees.tregex.TregexPattern
compile, knownVariables, main, matcher, matcher, pattern, prettyPrint, prettyPrint, prettyPrint, safeCompile
-
-
-
-
Constructor Detail
-
DescriptionPattern
public DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation rel, boolean negDesc, String desc, String name, boolean useBasicCat, Function<String,String> basicCatFunction, List<Pair<Integer,String>> variableGroups, boolean isLink, String linkedName)
-
DescriptionPattern
public DescriptionPattern(edu.stanford.nlp.trees.tregex.Relation newRelation, DescriptionPattern oldPattern)
-
-
Method Detail
-
localString
public String localString()
-
toString
public String toString()
- Specified by:
toStringin classTregexPattern- Returns:
- A single-line string representation of the pattern
-
setChild
public void setChild(TregexPattern n)
-
getChildren
public List<TregexPattern> getChildren()
-
matcher
public TregexMatcher matcher(Tree root, Tree tree, IdentityHashMap<Tree,Tree> nodesToParents, Map<String,Tree> namesToNodes, VariableStrings variableStrings, HeadFinder headFinder)
-
-