efxtools.sample.ae
Class EfXForecastDetector

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by efxtools.filtering.FilteringAnalysisEngine
                  extended by efxtools.sample.ae.EfXForecastDetector
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class EfXForecastDetector
extends FilteringAnalysisEngine

A classification-based forecast event detector that classifies for each given input sentence whether that sentence represents a forecast. Uses a Weka machine learning model to perform classification.

Author:
Author of EfXTools

Field Summary
static java.lang.String PARAM_DATASET_FILE
          Config parameter for setting the location of the dataset file
static java.lang.String PARAM_MODEL_FILE
          Config parameter for setting the location of the model file
 
Constructor Summary
EfXForecastDetector()
           
 
Method Summary
 void initialize(org.apache.uima.UimaContext aContext)
           
 
Methods inherited from class efxtools.filtering.FilteringAnalysisEngine
process, setResultSpecification
 
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, reconfigure
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_MODEL_FILE

public static final java.lang.String PARAM_MODEL_FILE
Config parameter for setting the location of the model file

See Also:
Constant Field Values

PARAM_DATASET_FILE

public static final java.lang.String PARAM_DATASET_FILE
Config parameter for setting the location of the dataset file

See Also:
Constant Field Values
Constructor Detail

EfXForecastDetector

public EfXForecastDetector()
Method Detail

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