public class CoordinationPattern extends SemgrexPattern
SemgrexPattern.OutputFormat
env
Constructor and Description |
---|
CoordinationPattern(boolean isNodeCoord,
java.util.List<SemgrexPattern> children,
boolean isConj,
boolean isRoot) |
Modifier and Type | Method and Description |
---|---|
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,
java.util.Map<java.lang.String,SemanticGraphEdge> namesToEdges,
edu.stanford.nlp.semgraph.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,
java.util.Map<java.lang.String,SemanticGraphEdge> namesToEdges,
edu.stanford.nlp.semgraph.semgrex.VariableStrings variableStrings,
boolean ignoreCase) |
void |
setChild(SemgrexPattern child) |
java.lang.String |
toString()
The goal is to return a string which will be compiled to the same pattern
|
java.lang.String |
toString(boolean hasPrecedence) |
compile, compile, equals, hashCode, help, main, matcher, matcher, matcher, matcher, matcher, matcher, pattern, prettyPrint, prettyPrint, prettyPrint, setEnv
public CoordinationPattern(boolean isNodeCoord, java.util.List<SemgrexPattern> children, boolean isConj, boolean isRoot)
public boolean isNodeCoord()
public void setChild(SemgrexPattern child)
public java.util.List<SemgrexPattern> getChildren()
public java.lang.String localString()
public java.lang.String toString()
SemgrexPattern
toString
in class SemgrexPattern
public java.lang.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, java.util.Map<java.lang.String,IndexedWord> namesToNodes, java.util.Map<java.lang.String,java.lang.String> namesToRelations, java.util.Map<java.lang.String,SemanticGraphEdge> namesToEdges, edu.stanford.nlp.semgraph.semgrex.VariableStrings variableStrings, boolean ignoreCase)
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, java.util.Map<java.lang.String,SemanticGraphEdge> namesToEdges, edu.stanford.nlp.semgraph.semgrex.VariableStrings variableStrings, boolean ignoreCase)