org.apache.ctakes.sideeffect.ae
Class PSESentenceAnnotator
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.ctakes.sideeffect.ae.PSESentenceAnnotator
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
public class PSESentenceAnnotator
- extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Identify the sentence(s) that contains PSE (signs/symptoms or
disease/disorder) and drugs and add them to PSESentence. - If the sentence
containing PSE doesn't have drug, include the previous sentence if it
contains drug and it is in the same line (paragraph). - Disregard the
particular section(s) (eg, allergy section (20105)) This annotation will be
used to extract features for side-effect sentence classification.
- Author:
- Mayo Clinic
Method Summary |
void |
initialize(org.apache.uima.UimaContext aContext)
|
void |
process(org.apache.uima.jcas.JCas jcas)
|
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase |
getRequiredCasInterface, process |
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase |
getCasInstancesRequired, hasNext, next |
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase |
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_IGNORE_SECTIONS
public static final java.lang.String PARAM_IGNORE_SECTIONS
- See Also:
- Constant Field Values
PSESentenceAnnotator
public PSESentenceAnnotator()
initialize
public void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
- Specified by:
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
- Overrides:
initialize
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
- Throws:
org.apache.uima.resource.ResourceInitializationException
process
public void process(org.apache.uima.jcas.JCas jcas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Specified by:
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException