org.apache.ctakes.assertion.util
Class NegationManualDepContextAnalyzer
java.lang.Object
org.apache.ctakes.assertion.util.NegationManualDepContextAnalyzer
public class NegationManualDepContextAnalyzer
- extends Object
Uses one or more finite state machines to detect dates in the given input of
tokens.
- Author:
- Mayo Clinic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NegationManualDepContextAnalyzer
public NegationManualDepContextAnalyzer()
isBoundary
public boolean isBoundary(org.apache.uima.jcas.tcas.Annotation contextAnnotation,
int scopeOrientation)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
findNegationContext
public boolean[] findNegationContext(List<ConllDependencyNode> nodes,
ConllDependencyNode focus)
throws Exception
- Executes the regular expressions on paths.
- Parameters:
nodes
- focus
-
- Returns:
- Set of DateToken objects.
- Throws:
Exception
getNumFeatures
public int getNumFeatures()
getRegexName
public String getRegexName(int i)
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.