Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Latest commit

 

History

History
23 lines (15 loc) · 898 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 898 Bytes

Sentiment Centipede

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.

Key Concepts

  • 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

Learning Goals

  • Parallel assignment to two or three variables
  • read/transform/write pattern
  • Opening files with different modes
  • Using split and assignment to multiple variables

Roadmap

  • Create scatterplot with Matplotlib of Number of Retweets vs Net sentiment Score