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

A simple sentiment analyser that counts the number of positive and negative words in tweets

Notifications You must be signed in to change notification settings

adoubleyoueye/Sentiment-Centipede

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple sentiment analyser that counts the number of positive and negative words in tweets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages