org.apache.ctakes.assertion.util
Class NegationManualDepContextAnalyzer

java.lang.Object
  extended by 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

Constructor Summary
NegationManualDepContextAnalyzer()
           
 
Method Summary
 boolean[] findNegationContext(List<ConllDependencyNode> nodes, ConllDependencyNode focus)
          Executes the regular expressions on paths.
 int getNumFeatures()
           
 String getRegexName(int i)
           
 boolean isBoundary(org.apache.uima.jcas.tcas.Annotation contextAnnotation, int scopeOrientation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegationManualDepContextAnalyzer

public NegationManualDepContextAnalyzer()
Method Detail

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.