Reads in synthetic twitter data which has the text of a tweet, the number of retweets of that tweet, and the number of replies to that tweet. from a file then computes sentiment scores, and write out to a .csv file.
Also using words that express positive sentiment and negative sentiment in txt.
- Read a file's contents, either as a single string or line by line.
- Use relative paths to specify a file's location
- Write to a text file
- I/O files in comma separated values format
- Parallel assignment to two or three variables
- read/transform/write pattern
- Opening files with different modes
- Using split and assignment to multiple variables
- Create scatterplot with Matplotlib of
Number of Retweets
vsNet sentiment Score