edu.stanford.nlp.semgrex
Class CoordinationPattern
java.lang.Object
edu.stanford.nlp.semgrex.SemgrexPattern
edu.stanford.nlp.semgrex.CoordinationPattern
- All Implemented Interfaces:
- Serializable
public class CoordinationPattern
- extends SemgrexPattern
- Author:
- Chloe Kiddon
- See Also:
- Serialized Form
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 |
CoordinationPattern
public CoordinationPattern(boolean isNodeCoord,
List<SemgrexPattern> children,
boolean isConj)
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