You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ A Laravel wrapper for [phpInsight](https://github.com/JWHennessey/phpInsight).
13
13
14
14
[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.2+, and [Composer](https://getcomposer.org) are required.
15
15
16
-
To get the latest version of Laravel Sentiment Analysis, simply require `"antoineaugusti/laravel-sentiment-analysis": "1.0.*"` in your `composer.json` file. You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.
16
+
To get the latest version of Laravel Sentiment Analysis, simply require `"antoineaugusti/laravel-sentiment-analysis": "1.1.*"` in your `composer.json` file. You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.
17
17
18
18
Once Laravel Sentiment Analysis is installed, you need to register the service provider. Open up `app/config/app.php` and add the following to the `providers` key.
19
19
@@ -39,4 +39,9 @@ Returns a boolean telling if the given `$sentence` is classified as positive.
39
39
Get the sentiment of a sentence. Will return `negative`, `neutral` or `positive`
40
40
41
41
### SentimentAnalysis::score($sentence)
42
-
Get the confidence of a decision for a result. The closer to 1, the better!
42
+
Get the confidence of a decision for a result. The closer to 1, the better!
43
+
44
+
### SentimentAnalysis::scores($sentence)
45
+
Get the score value for each decision. Returns an array. The closer to 1, the better! Return example:
0 commit comments