edu.stanford.nlp.semgrex
Class NodePattern

java.lang.Object
  extended by edu.stanford.nlp.semgrex.SemgrexPattern
      extended by edu.stanford.nlp.semgrex.NodePattern
All Implemented Interfaces:
java.io.Serializable

public class NodePattern
extends SemgrexPattern

See Also:
Serialized Form

Constructor Summary
NodePattern(edu.stanford.nlp.semgrex.GraphRelation r, boolean negDesc, java.util.Map<java.lang.String,java.lang.String> attrs, boolean root, boolean empty, java.lang.String name)
           
NodePattern(edu.stanford.nlp.semgrex.GraphRelation r, boolean negDesc, java.util.Map<java.lang.String,java.lang.String> attrs, boolean root, boolean empty, java.lang.String name, java.util.List<Pair<java.lang.Integer,java.lang.String>> variableGroups)
           
 
Method Summary
 java.util.List<SemgrexPattern> getChildren()
           
 java.lang.String getName()
           
 boolean isNull()
           
 boolean isRoot()
           
 java.lang.String localString()
           
 void makeLink()
           
 SemgrexMatcher matcher(SemanticGraph sg, Alignment alignment, SemanticGraph sg_align, boolean hyp, IndexedWord node, java.util.Map<java.lang.String,IndexedWord> namesToNodes, java.util.Map<java.lang.String,java.lang.String> namesToRelations, edu.stanford.nlp.semgrex.VariableStrings variableStrings, boolean ignoreCase)
           
 SemgrexMatcher matcher(SemanticGraph sg, IndexedWord node, java.util.Map<java.lang.String,IndexedWord> namesToNodes, java.util.Map<java.lang.String,java.lang.String> namesToRelations, edu.stanford.nlp.semgrex.VariableStrings variableStrings, boolean ignoreCase)
           
 boolean nodeAttrMatch(IndexedWord node, SemanticGraph sg, boolean ignoreCase)
           
 void setChild(SemgrexPattern n)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.nlp.semgrex.SemgrexPattern
compile, matcher, matcher, matcher, matcher, matcher, pattern, prettyPrint, prettyPrint, prettyPrint, setPatternString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodePattern

public NodePattern(edu.stanford.nlp.semgrex.GraphRelation r,
                   boolean negDesc,
                   java.util.Map<java.lang.String,java.lang.String> attrs,
                   boolean root,
                   boolean empty,
                   java.lang.String name)

NodePattern

public NodePattern(edu.stanford.nlp.semgrex.GraphRelation r,
                   boolean negDesc,
                   java.util.Map<java.lang.String,java.lang.String> attrs,
                   boolean root,
                   boolean empty,
                   java.lang.String name,
                   java.util.List<Pair<java.lang.Integer,java.lang.String>> variableGroups)
Method Detail

nodeAttrMatch

public boolean nodeAttrMatch(IndexedWord node,
                             SemanticGraph sg,
                             boolean ignoreCase)

makeLink

public void makeLink()

isRoot

public boolean isRoot()

isNull

public boolean isNull()

localString

public java.lang.String localString()

toString

public java.lang.String toString()
Specified by:
toString in class SemgrexPattern
Returns:
A single-line string representation of the pattern

setChild

public void setChild(SemgrexPattern n)

getChildren

public java.util.List<SemgrexPattern> getChildren()

getName

public java.lang.String getName()

matcher

public SemgrexMatcher matcher(SemanticGraph sg,
                              IndexedWord node,
                              java.util.Map<java.lang.String,IndexedWord> namesToNodes,
                              java.util.Map<java.lang.String,java.lang.String> namesToRelations,
                              edu.stanford.nlp.semgrex.VariableStrings variableStrings,
                              boolean ignoreCase)

matcher

public SemgrexMatcher matcher(SemanticGraph sg,
                              Alignment alignment,
                              SemanticGraph sg_align,
                              boolean hyp,
                              IndexedWord node,
                              java.util.Map<java.lang.String,IndexedWord> namesToNodes,
                              java.util.Map<java.lang.String,java.lang.String> namesToRelations,
                              edu.stanford.nlp.semgrex.VariableStrings variableStrings,
                              boolean ignoreCase)


Stanford NLP Group