Package seekfeel.dataholders

Examples of seekfeel.dataholders.MovieReview


        String dirName = polarity == 1 ? PropertiesGetter.getProperty("PosReviewsDir") : PropertiesGetter.getProperty("NegReviewsDir");
        File dir = new File(dirName);
        String reviewBody;
        ArrayList<DataUnit> theReviews = new ArrayList<DataUnit>();
        String[] fileNames = dir.list();
        MovieReview tempReview;
        if (fileNames != null) {
            for (String fileName : fileNames) {
                tempReview = new MovieReview();
                tempReview.setSentiment(polarity);
                reviewBody = readFile(dirName + "//" + fileName);
                tempReview.setDataBody(reviewBody);
                theReviews.add(tempReview);
            }
        }
        return theReviews;
    }
View Full Code Here

TOP

Related Classes of seekfeel.dataholders.MovieReview

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.