Sentiment AnalysisStanford CS221 Fall 20162017Owner CA: Isaac CaswellVersion: 1General InstructionsThis (and every) assignment has a written part and a programming part.You should modify the code in submission.py between# BEGIN_YOUR_CODEand# END_YOUR_CODEbut you can add other helper functions outside this block if you want. Do not make changes to files other than submission.py.Your code will be
...[Show More]
Sentiment Analysis
Stanford CS221 Fall 20162017
Owner CA: Isaac Caswell
Version: 1
General Instructions
This (and every) assignment has a written part and a programming part.
You should modify the code in submission.py between
# BEGIN_YOUR_CODE
and
# END_YOUR_CODE
but you can add other helper functions outside this block if you want. Do not make changes to files other than submission.py.
Your code will be evaluated on two types of test cases, basic and hidden, which you can see in grader.py. Basic tests, which are
fully provided to you, do not stress your code with large inputs or tricky corner cases. Hidden tests are more complex and do stress your
code. The inputs of hidden tests are provided in grader.py, but the correct outputs are not. To run all the tests, type
python grader.py
This will tell you only whether you passed the basic tests. On the hidden tests, the script will alert you if your code takes too long or
crashes, but does not say whether you got the correct output. You can also run a single test (e.g., 3a-0-basic) by typing
python grader.py 3a-0-basic
We strongly encourage you to read and understand the test cases, create your own test cases, and not just blindly run grader.py.
Advice for this homework:
a. Words are simply strings separated by whitespace. Don't normalize the capitalization of words (treat great and Great as
different words).
b. You might find some useful functions in util.py. Have a look around in there before you start coding.
Problem 1: Warmup
Here are two reviews of "Frozen," courtesy of Rotten Tomatoes (no spoilers!):
Rotten Tomatoes has classified these reviews as "positive" and "negative," respectively, as indicated by the intact tomato on the left and
the splattered tomato on the right. In this assignment, you will create a simple text classification system that can perform this task
automatically.
a. This icon means a written answer is expected in sentiment.pdf.
b. This icon means you should write code in submission.py.
Processing math: 100%
https://www.coursehero.com/file/59185386/Assignemtn-2-Solutionspdf/
This study resource was
share
[Show Less]