public class NegationManualDepContextAnalyzer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private NegationDepRegex |
regexes |
Constructor and Description |
---|
NegationManualDepContextAnalyzer() |
Modifier and Type | Method and Description |
---|---|
boolean[] |
findNegationContext(java.util.List<ConllDependencyNode> nodes,
ConllDependencyNode focus)
Executes the regular expressions on paths.
|
private int |
findPathMatches(DependencyPath path) |
int |
getNumFeatures() |
java.lang.String |
getRegexName(int i) |
boolean |
isBoundary(Annotation contextAnnotation,
int scopeOrientation) |
private NegationDepRegex regexes
public boolean isBoundary(Annotation contextAnnotation, int scopeOrientation) throws AnalysisEngineProcessException
AnalysisEngineProcessException
public boolean[] findNegationContext(java.util.List<ConllDependencyNode> nodes, ConllDependencyNode focus) throws java.lang.Exception
nodes
- focus
- java.lang.Exception
private int findPathMatches(DependencyPath path)
public int getNumFeatures()
public java.lang.String getRegexName(int i)