Skip to content

osu-eastbay-study-group/beaver-hacks-2020-tweet-mood-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweet.Tone (work in progress)

Table of Contents

Description

Given a link to a specific tweet, Tweet.Tone will fetch the tweet and analyze the emotional tones in its contentusing IBM Watson’s Tone Analyzer. It will then display the most dominant tones as colored dots next to the Tweet as well as generating tones for any comments made directly in response to it. The tones for the comments will be generated in a rectangular array of dots colored by tones under the searched tweet.

Additionally the user may click on any of the comment dots which will show its content along with its most dominant tone breakdown.

Images

Page for Parent tweet / Splash Page FrontEnd_NonCode/UI_Drafts/BeaverHacks_Dots_ParentMainPage__Kyle.png

Focus on a child tweet FrontEnd_NonCode/UI_Drafts/BeaverHacks_Dots_ChildFocusPage__Ryan.png

Example colors for moods FrontEnd_NonCode/BeaverHacks_HexCodeChart.png

Dependencies

DependencyVersion
Python3.6
Bash4

Installation

  1. Clone this repository
  2. Install the Python requirements (preferably in a virtual environment of your choice)
    pip install -r requirements.txt
        

Authentication

  1. To use Tweet.Tone it is necessary to sign up for an IBM Cloud Account and then create an instance of the IBM Watson Tone Analyzer.
  2. Create a file name .env in the root directory of the repository
  3. Replace the angle brackets and their contents with your corresponding credentials in .env.
    export TONE_KEY="<api-token-from-IBM-cloud-account-tone-analyzer>"
    export TONE_URL="<api-url-from-IBM-cloud-account-tone-analyzer>"
    export SECRET_KEY="<your-choice-of-secret-key-for-flask-app>"
        
  4. Make the .env executable.
    chmod u+x .env
        

Usage

  1. cd to the root directory of the repo.
  2. Source .env to apply the environment variables.
    . .env
        
  3. Create the app (make sure your virtual enviornment is activated if you are using one)
    flask run
        
  4. As deployment has not been completed, visit app locally on your machine at http://localhost:5000.

Credits and Thanks

Authors

About

Analyze the emotional tone of tweets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published