Requirements for a successful run:
- Access to Google Cloud Services
- Set up account with Google Cloud Platform
- Google Cloud Compute Engine API enabled
- Google Cloud Natural Language API enabled
- Python installation
- run export GOOGLE_APPLICATION_CREDENTIALS="[PATH]" command in terminal where [PATH] is the directory with credentials.json (included in ZIP file).
- 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:
As you can see, the results are positive with a high magnitude.