Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
JAVA PROGRAM *******PLEASE DO NOT COPY PASTE OTHER ANSWERS******** Project Title: Sentiment Analysis (stage 1) Goal: The goal of this assignment is to help students
JAVA PROGRAM *******PLEASE DO NOT COPY PASTE OTHER ANSWERS********
Project Title: Sentiment Analysis (stage 1) Goal: The goal of this assignment is to help students familiarize themselves with the following Java programming concepts: 1. Input/Output to and from the terminal. 2. Storing data in a file and reading data from a file 3. Creating object-oriented classes and methods to handle data. 4. Using data structures to store data in main memory (e.g. HashSet) 5. Working with character strings. 6. Using Javadoc comments and generating and html documentation of the program Description: For this assignment you will create a program to classify a set of movie reviews as positive or negative based on their sentiment. This process is known as Sentiment Analysis, and there are multiple approaches to analyze the data and estimate the sentiment. More information about sentiment analysis can be found on Wikipedia and other sources. https://en.wikipedia.org/wiki/Sentiment analysis In this assignment, vou are to write a Java program that will classifv a review as positive or negative by counting the number of positive and negative words that appear in that review. Your program will have multiple inputs as command line arguments Paths to two text files: list of positive words (positive-words.txt) and list of negative words (negative-words.txt) Paths to two folders: the folder 'pos' contains the positive reviews and the folder 'neg' contains the negative reviews, both manually assigned by humans. The reviews within each folder are given in separate .txt files, one review per file Your class containing the main() method should be named SentimentAnalysisApp and it should accept the following command line arguments: java sentimentAnalysisAppStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started