Skip to content

rosette-api-community/rosette-sarcasm-detector

Repository files navigation

rosette-sarcasm-detector

A tool that analyzes and detects sarcastic tweets.

##Prerequisites

  • A valid Rosette API key (if you don't have one, you can get one here)
  • A Cloud Vision API key (you can find instructions on how to get started here)
  • Twitter Keys and Access Tokens (including all of the following: API Key, API Secret, Access Token, Access Token Secret which can be obtained here)

##Installation

  1. Check out this repo to your machine.
  2. The project can be run in Docker by following the instructions inside the 'docker' directory or by setting up a developer's environment locally and can be run from there.

##How it Works

The TwitterSearch library iterates throughout all tweets reachable via the Twitter API that match the provided query. The data collected from each tweet is processed through the Rosette API sentiment analyzer and Google Vision simultaneously in order to detect sarcastic tweets.