public class CoordinationPattern extends SemgrexPattern
Constructor and Description |
---|
CoordinationPattern(boolean isNodeCoord,
List<SemgrexPattern> children,
boolean isConj) |
Modifier and Type | Method and Description |
---|---|
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.semgraph.semgrex.VariableStrings variableStrings,
boolean ignoreCase) |
SemgrexMatcher |
matcher(SemanticGraph sg,
IndexedWord node,
Map<String,IndexedWord> namesToNodes,
Map<String,String> namesToRelations,
edu.stanford.nlp.semgraph.semgrex.VariableStrings variableStrings,
boolean ignoreCase) |
void |
setChild(SemgrexPattern child) |
String |
toString() |
String |
toString(boolean hasPrecedence) |
compile, equals, hashCode, help, main, matcher, matcher, matcher, matcher, matcher, pattern, prettyPrint, prettyPrint, prettyPrint
public CoordinationPattern(boolean isNodeCoord, List<SemgrexPattern> children, boolean isConj)
public boolean isNodeCoord()
public void setChild(SemgrexPattern child)
public void addRelnToNodeCoord(SemgrexPattern child)
public List<SemgrexPattern> getChildren()
public String localString()
public String toString()
toString
in class SemgrexPattern
public String toString(boolean hasPrecedence)
toString
in class SemgrexPattern
hasPrecedence
- indicates that this pattern has precedence in terms
of "order of operations", so there is no need to parenthesize the
expressionpublic SemgrexMatcher matcher(SemanticGraph sg, IndexedWord node, Map<String,IndexedWord> namesToNodes, Map<String,String> namesToRelations, edu.stanford.nlp.semgraph.semgrex.VariableStrings variableStrings, boolean ignoreCase)
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.semgraph.semgrex.VariableStrings variableStrings, boolean ignoreCase)