AlchemyAPI::sentiment_targeted
Calculates the targeted sentiment for text, a URL or HTML.
For an overview, please refer to: http://www.alchemyapi.com/products/features/sentiment-analysis/ For the docs, please refer to: http://www.alchemyapi.com/api/sentiment-analysis/ INPUT: flavor -> which version of the call, i.e. text, url or html. data -> the data to analyze, either the text, the url or html code. target -> the word or phrase to run sentiment analysis on. options -> various parameters that can be used to adjust how the API works, see below for more info on the available options. Available Options: showSourceText -> 0: disabled, 1: enabled OUTPUT: The response, already converted from JSON to a PHP object.
Signature
public function sentiment_targeted(
$flavor,
$data,
$target,
$options )
Parameters
$flavor
—$data
—$target
—$options
—