adam-paterson / ibm-watson-sdk

🛠 [WIP] The unofficial Watson PHP SDK enables developers to quickly add Watson Cognitive Computing services to their PHP applications.
https://www.ibm.com/watson/
6 stars 1 forks source link

Feature/tone analyzer #23

Closed adam-paterson closed 1 year ago

adam-paterson commented 6 years ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

ToneAnalyzer service.

Example Usage

$auth = new \Http\Message\Authentication\BasicAuth('username', 'password');
$service = \IBM\Watson\ToneAnalyzer\Service::create($auth);

$analysis = $service->tone()->analyze('text to analyze');

// Now we can do
$analysis->getDocumentAnalysis();
$analysis->getSentenceAnalysis();

Checklist

To Do