public class CoordinationPattern extends SemgrexPattern
SemgrexPattern.OutputFormat
env
Constructor and Description |
---|
CoordinationPattern(boolean isNodeCoord,
List<SemgrexPattern> children,
boolean isConj,
boolean isRoot) |
Modifier and Type | Method and Description |
---|---|
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()
The goal is to return a string which will be compiled to the same pattern
|
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, List<SemgrexPattern> children, boolean isConj, boolean isRoot)
public boolean isNodeCoord()
public void setChild(SemgrexPattern child)
public List<SemgrexPattern> getChildren()
public String localString()
public String toString()
SemgrexPattern
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)