edu.stanford.nlp.semgrex
Class CoordinationPattern

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

public class CoordinationPattern
extends SemgrexPattern

Author:
Chloe Kiddon
See Also:
Serialized Form

Constructor Summary
CoordinationPattern(boolean isNodeCoord, List<SemgrexPattern> children, boolean isConj)
           
 
Method Summary
 void addRelnToNodeCoord(SemgrexPattern child)
           
 List<SemgrexPattern> getChildren()
           
 boolean isNodeCoord()
           
 String localString()
           
 SemgrexMatcher matcher(SemanticGraph sg, Alignment alignment, SemanticGraph sg_align, boolean hypToText, IndexedWord node, Map<String,IndexedWord> namesToNodes, Map<String,String> namesToRelations, edu.stanford.nlp.semgrex.VariableStrings variableStrings, boolean ignoreCase)
           
 SemgrexMatcher matcher(SemanticGraph sg, IndexedWord node, Map<String,IndexedWord> namesToNodes, Map<String,String> namesToRelations, edu.stanford.nlp.semgrex.VariableStrings variableStrings, boolean ignoreCase)
           
 void setChild(SemgrexPattern child)
           
 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

CoordinationPattern

public CoordinationPattern(boolean isNodeCoord,
                           List<SemgrexPattern> children,
                           boolean isConj)
Method Detail

isNodeCoord

public boolean isNodeCoord()

setChild

public void setChild(SemgrexPattern child)

addRelnToNodeCoord

public void addRelnToNodeCoord(SemgrexPattern child)

getChildren

public List<SemgrexPattern> getChildren()

localString

public String localString()

toString

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

matcher

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

matcher

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


Stanford NLP Group