/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package at.illecker.storm.commons.svm.featurevector;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import edu.stanford.nlp.ling.TaggedWord;

public abstract class FeatureVectorGenerator {
  private static final Logger LOG = LoggerFactory
      .getLogger(FeatureVectorGenerator.class);

  public abstract int getFeatureVectorSize();

  public abstract Map<Integer, Double> generateFeatureVector(
      List<TaggedWord> tweet);

  public List<Map<Integer, Double>> generateFeatureVectors(
      List<List<TaggedWord>> tweets) {
    return generateFeatureVectors(tweets, false);
  }

  public List<Map<Integer, Double>> generateFeatureVectors(
      List<List<TaggedWord>> taggedTweets, boolean logging) {
    List<Map<Integer, Double>> featuredVectors = new ArrayList<Map<Integer, Double>>();
    for (List<TaggedWord> tweet : taggedTweets) {
      Map<Integer, Double> featureVector = generateFeatureVector(tweet);
      if (logging) {
        LOG.info("Tweet: " + tweet);
        LOG.info("FeatureVector: " + featureVector);
      }
      featuredVectors.add(featureVector);
    }
    return featuredVectors;
  }

}

@@ -982,16 +982,59 @@
 ctory;%0A%0A
+import cmu.arktweetnlp.Tagger.TaggedToken;%0A
 import e
@@ -1299,32 +1299,42 @@
 Double%3E generate
+TaggedWord
 FeatureVector(%0A 
@@ -1360,24 +1360,130 @@
 d%3E tweet);%0A%0A
+  public abstract Map%3CInteger, Double%3E generateTaggedTokenFeatureVector(%0A      List%3CTaggedToken%3E tweet);%0A%0A
   public Lis
@@ -1506,32 +1506,42 @@
 ouble%3E%3E generate
+TaggedWord
 FeatureVectors(%0A
@@ -1590,32 +1590,42 @@
  return generate
+TaggedWord
 FeatureVectors(t
@@ -1680,32 +1680,42 @@
 ouble%3E%3E generate
+TaggedWord
 FeatureVectors(%0A
@@ -1965,16 +1965,760 @@
 generate
+TaggedWordFeatureVector(tweet);%0A      if (logging) %7B%0A        LOG.info(%22Tweet: %22 + tweet);%0A        LOG.info(%22FeatureVector: %22 + featureVector);%0A      %7D%0A      featuredVectors.add(featureVector);%0A    %7D%0A    return featuredVectors;%0A  %7D%0A%0A  public List%3CMap%3CInteger, Double%3E%3E generateTaggedTokenFeatureVectors(%0A      List%3CList%3CTaggedToken%3E%3E tweets) %7B%0A    return generateTaggedTokenFeatureVectors(tweets, false);%0A  %7D%0A%0A  public List%3CMap%3CInteger, Double%3E%3E generateTaggedTokenFeatureVectors(%0A      List%3CList%3CTaggedToken%3E%3E taggedTweets, boolean logging) %7B%0A    List%3CMap%3CInteger, Double%3E%3E featuredVectors = new ArrayList%3CMap%3CInteger, Double%3E%3E();%0A    for (List%3CTaggedToken%3E tweet : taggedTweets) %7B%0A      Map%3CInteger, Double%3E featureVector = generateTaggedToken
 FeatureV

Update abstract FeatureVectorGenerator