efxtools.sample.ae.helper
Class ForecastFeatureGenerator
java.lang.Object
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:
- Verb lemmata in a statement
- Verb part-of-speech in a statement
- Adjective and adverb lemmata in time expressions
- Prepositions in time expressions
- 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 |
ForecastFeatureGenerator
public ForecastFeatureGenerator(java.util.List<java.lang.String> featureNames)
- The constructor initializes the maps for feature computation.
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 objectsentence - The sentence
- Returns:
- The feature values