edu.stanford.nlp.semgrex
Class CoordinationPattern
java.lang.Object
edu.stanford.nlp.semgrex.SemgrexPattern
edu.stanford.nlp.semgrex.CoordinationPattern
- All Implemented Interfaces:
- java.io.Serializable
public class CoordinationPattern
- extends SemgrexPattern
- Author:
- Chloe Kiddon
- See Also:
- Serialized Form
Method Summary |
void |
addRelnToNodeCoord(SemgrexPattern child)
|
java.util.List<SemgrexPattern> |
getChildren()
|
boolean |
isNodeCoord()
|
java.lang.String |
localString()
|
SemgrexMatcher |
matcher(SemanticGraph sg,
Alignment alignment,
SemanticGraph sg_align,
boolean hypToText,
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)
|
void |
setChild(SemgrexPattern child)
|
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 |
CoordinationPattern
public CoordinationPattern(boolean isNodeCoord,
java.util.List<SemgrexPattern> children,
boolean isConj)
isNodeCoord
public boolean isNodeCoord()
setChild
public void setChild(SemgrexPattern child)
addRelnToNodeCoord
public void addRelnToNodeCoord(SemgrexPattern child)
getChildren
public java.util.List<SemgrexPattern> getChildren()
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
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 hypToText,
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