Giter Site home page Giter Site logo

joshuawnc / sentiment-analysis-benchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manasrk/sentiment-analysis-benchmark

0.0 2.0 0.0 1.58 MB

This code provides the source code and datasets to perform a sentiment analysis benchmark between various NLP APIs.

Python 100.00%

sentiment-analysis-benchmark's Introduction

Sentiment Analysis APIs Benchmark

Source code to run the sentiment analysis benchmark that compares the performance of different NLP APIs predicting the sentiment on tweets.

You can read the full post here.

Different datasets were used for this benchmark:

  • Generic: is a set of tweets with comments about celebrities, brands, movies and products. The tweets were collected with Twitter API and tagged by humans using CrowdFlower platform.

The rest of the datasets are part of the Crowdflower's data for everyone initiative:

  • Products & brands: tweets with comments about multiple brands and products. The full dataset can be accessed here.

  • Apple products: tweets with comments about Apple products. The full dataset can be accessed here.

  • Airlines: tweets with comments about different US airlines. The full dataset can be accessed here.

Scripts provided:

  • api_benchmarks.py runs all the APIs classifications, just set the following variables in the main script:

    • api_name = to the name of the API to run (monkeylearn, metamind, alchemyAPI
    • dataset_name = the name of the dataset to run ["generic", "products", "apple", "airlines"]
  • get_accuracies.py calculates the accuracy, precision and recall of each category (positive, neutral and negative). You must select the dataset to run the calculations at the top of the script.

  • settings.py before running the scripts, you must fill this file with your tokens for each API.

sentiment-analysis-benchmark's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.