Package Filter

Source Code of Filter.DPAspectExtractor

/*
* 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;
    }

}
TOP

Related Classes of Filter.DPAspectExtractor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.