Skip to content

cflores713/pineappleProject

Repository files navigation

🍍 Applying sentiment Analysis on a Corpus with Python and Google Cloud Services

Image of SS

🍍 Authors: Carlos Flores, Ibrahim Khatkhatay

Project: Safe Word Pineapple

Requirements for a successful run:

  1. Access to Google Cloud Services
  2. Set up account with Google Cloud Platform
  3. Google Cloud Compute Engine API enabled
  4. Google Cloud Natural Language API enabled
  5. Python installation
  6. run export GOOGLE_APPLICATION_CREDENTIALS="[PATH]" command in terminal where [PATH] is the directory with credentials.json (included in ZIP file).
  7. cd to correct directory

Examples of the terminal commands can be seen in the screenshots that are attached.

For the submission program, terminal command is: python pineapple_sentiment.py [INPUT_FILE] [STARTING_ROW(OPTIONAL)] [ENDING_ROW(OPTIONAL)] [OUTPUT_FILE]

The input from the attatched screenshot came from this favorable movie review:

Image of results

As you can see, the results are positive with a high magnitude.

Have fun!

About

Teaching a computer to recognize toxic comments using Google Cloud Natural Language Processing tools. Submitted for entry into the MLH event at UT-Dallas HackDFW 2019.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published