Package seekfeel.datareaders

Examples of seekfeel.datareaders.Reviews_Reader


    static BufferedWriter out = null;

    public static void main(String[] args) throws IOException {

       Controller cont = new Controller();
       cont.setSource(new Reviews_Reader());
       cont.getReviewsFromSource("//Reviews//Reviews-9-products//Canon S100.txt");
       cont.sentimize();
      
    }
View Full Code Here


        try {
            String Input_file = "\\Reviews\\RevsAll.txt";

            String CRF_out_File = "\\CRF_Out\\AllExtractedFeatures.txt";

            Reviews_Reader R = new Reviews_Reader();
            ArrayList<DataUnit> Revs = R.Get_Reviews_From_File(Input_file)// get all the reviews of a text file and put it in an array of Reviews

            Relevance_Calculator rc = new Relevance_Calculator("\\Background freq\\Combined_BG_Freq.txt", Revs);

            rc.ReadWords(CRF_out_File);
View Full Code Here

    @Override
    public CorpusHolder loadCorpus(String fileName) {
        CorpusHolder cHolder = new CorpusHolder();
        ArrayList<DataUnit> positiveExamples = new ArrayList<DataUnit>();
        ArrayList<DataUnit> negativeExamples = new ArrayList<DataUnit>();
        Reviews_Reader reviewReader = new Reviews_Reader();
        ArrayList<Review> allReviews = reviewReader.Get_Reviews_From_File(fileName);

        for (Review review : allReviews) {
            for (int i = 0; i < review.Review_Sentences.size(); i++) {
                for (int j = 0; j < review.Sentences_Features.get(i).size(); j++) {
                    if (review.Sentences_Features.get(i).get(j).Rank > 0) {
View Full Code Here

     * @param args the command line arguments
     */
   
    public static void main(String[] args) throws IOException
    {
         Reviews_Reader R = new Reviews_Reader();
   ArrayList Revs =  R.Get_Reviews_From_File("\\Nokia 6610.txt")// get all the reviews of a text file and put it in an array of Reviews
         DoublePropagationManager dpMan = new DoublePropagationManager();
         for(int k =0; k < 3/*Revs.size()*/; k++)
         {
            Review r = (Review)Revs.get(k);
           // ArrayList<String> aspects = dpMan.extractAspects(r);
View Full Code Here

TOP

Related Classes of seekfeel.datareaders.Reviews_Reader

Copyright © 2018 www.massapicom. 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.