Python代写:MSBA7012-Sentiment-Analysis

###
MSBA7012 Sentiment Analysis Individual Assignment

Instructions and Requirements:

  • Calculate the sentiment score for each of the 100 Seeking Alpha articles given to you
  • Sentiment score is defined as the fraction of positive words minus the fraction of negative words in the article content
  • Use the Loughran-McDonald sentiment word lists
  • Save the sentiment scores in a CSV file with five columns: article_id, pos_word, neg_word, total_word, sentiment
  • Add comments to your code to improve readability
  • Grading is mainly based on the accuracy, efficiency, readability, and reusability of your program code
  • Make sure your program calculates the total running time (in seconds) and print it out

Deliverables:

  • Source code of your program
  • CSV file of your program output
  • A readme.txt file describing the package/environment requirements to run your program
  • Compress the above files into a zip file named with your student ID, e.g., 123456.zip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Environment:
python3

Package:
xlrd
csv
re
string
time

How to run:
1. Open terminal
2. CD to this directory
3. Run:
python.exe .\main.py