Sentiment By Term

Find the sentiment associated with particular words in a document

Algorithmia Platform License
apl
· Calls Other Algorithms

This algorithm has permission to call other algorithms.

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

{
  "john brown": 3.5,
  "bob": 1
}

Install & Use

Use

curl -X POST -d '[
  "John Brown (Johnny to his friends) is amazing! Johnny is by far the best mechanic in the tri-state area. Bob Bozo is the worst.",
  ["john brown","bob"],
  {"john brown":["johnny"]}
]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/nlp/SentimentByTerm/0.1.3