/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Filter;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import preprocessing.*;
import java.util.*;
import seekfeel.dataholders.Review;
import aspects_doublepropagation.DoublePropagationManager;
/**
*
* @author acer
*/
public class DPAspectExtractor implements AspectExtractor {
DoublePropagationManager dpMan = null;
public DPAspectExtractor() {
dpMan = new DoublePropagationManager();
}
public ArrayList<String> getFeatures(Review rev)
{
try {
ArrayList<String> aspects = dpMan.extractAspects(rev);
return aspects;
} catch (IOException ex) {
Logger.getLogger(DPAspectExtractor.class.getName()).log(Level.SEVERE, null, ex);
}
return null;
}
}