Package seekfeel.dataholders

Source Code of seekfeel.dataholders.Review

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package seekfeel.dataholders;

import java.util.ArrayList;

import preprocessing.Formatted_Text;

/**
*
* @author Ashraf
* This is the class that holds the Review Information
*/
public class Review extends DataUnit {

  public String Review_Body;
  public String Review_Feature;
  public String Review_Title;
  public String Suggetion;
  public int Rank;
  public ArrayList<String> Review_Sentences = new ArrayList<String>();

  public boolean Without_Feature = false;
  public boolean Without_Pronoun_resolution = false;
  public boolean Has_Suggetions = false;
  public boolean Has_Comparison_With_Different_Brand = false;
  public boolean Has_Comparison_With_Same_Brand = false;

  public ArrayList Features = new ArrayList();

  public ArrayList<ArrayList<Product_Feature>> Sentences_Features = new ArrayList<ArrayList<Product_Feature>>();

  public ArrayList<Formatted_Text> formatedSentences = new ArrayList<Formatted_Text>();

  /**
   *
   * function called to put the review's sentences into formatted
   * representation i.e. each word is given a POS and a relevancy .
   */
  public void formatt() {
    for (String sentence : Review_Sentences) {
      if (!sentence.trim().equals("")) {
        Formatted_Text ft = new Formatted_Text();
        ft.Format_Text(sentence);
        formatedSentences.add(ft);
      }
    }
  }
}
TOP

Related Classes of seekfeel.dataholders.Review

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.