specrom / GetSentimentsScorefromText / 0.2.0

Get Sentiments Score from Text

50 Credit Royalty
Gives positive, negative and neutral sentiments from text.
Python 3.x
API Calls - 1,756 Avg call duration - 3.39sec
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. 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 allows an algorithm to compose sophisticated functionality using other algorithms as building blocks , however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls .

Run an Example

  "documents": [
      "id": "1",
      "sentiments_score": 0.41
      "id": "2",
      "sentiments_score": 0.625

Install and Use


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


    algo run specrom/GetSentimentsScorefromText/0.2.0 -d '{ "documents": [
    { "id": "1", "text": "Late in the 21st century, man develops artificial intelligence (referred to simply as the Machines). The Machines take control of Earth. Man fights back." },
    { "id": "2", "text": "During WWII, Rick, a nightclub owner in Casablanca, agrees to help his former lover Ilsa and her husband. Soon, Ilsa's feelings for Rick resurface and she finds herself renewing her love for him."}]}' --timeout 300
CLI Docs