rkau

rkau / UnsupervisedSentiment / 0.1.5

Unsupervised Sentiment Analysis

Royalty Free
Another take on sentiment analysis. English language only. Trained on 82 million Amazon product reviews.
Language
Python 3.x
Metrics
API Calls - 11,809 Avg call duration - 1.10sec
Permissions
The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT). Learn More
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This algorithm uses advanced GPU features.

Run an Example

Input
Output
{
  "avg": 0.09105601906776428,
  "max": 1.0668619871139526,
  "min": -0.8847499489784241,
  "sentences_sentiments": [
    {
      "sentence": "This is great.",
      "sentiment": 1.0668619871139526
    },
    {
      "sentence": "I did not like it though.",
      "sentiment": -0.8847499489784241
    }
  ]
}

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run rkau/UnsupervisedSentiment/0.1.5 -d '{
  "text": "This is great. I did not like it though."
}' --timeout 300
  
CLI Docs