efxtools.sample.ae.helper
Class ForecastFeatureGenerator

java.lang.Object
  extended by efxtools.sample.ae.helper.ForecastFeatureGenerator

public class ForecastFeatureGenerator
extends java.lang.Object

Class for generating features for the representation of forecasts.

The following classes of features are computed:

Author:
Author of EfXTools

Constructor Summary
ForecastFeatureGenerator(java.util.List<java.lang.String> featureNames)
          The constructor initializes the maps for feature computation.
 
Method Summary
 double[] computeFeatures(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation sentence)
          Computes feature values for the filtered text window.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForecastFeatureGenerator

public ForecastFeatureGenerator(java.util.List<java.lang.String> featureNames)
The constructor initializes the maps for feature computation.

Method Detail

computeFeatures

public double[] computeFeatures(org.apache.uima.jcas.JCas jcas,
                                org.apache.uima.jcas.tcas.Annotation sentence)
Computes feature values for the filtered text window.

Parameters:
jcas - The JCas object
sentence - The sentence
Returns:
The feature values