vamanai / sentiment
Laravel machine learning based Text Sentiment Analysis package from VamanAI.com
Requires
Requires (Dev)
- guzzlehttp/guzzle: ^6.3
- mockery/mockery: ^1.0
- orchestra/testbench: ^3.8|^4.0|^5.0
- phpunit/phpunit: ^7.5|^8.0
- symfony/psr-http-message-bridge: 0.2
This package is auto-updated.
Last update: 2024-05-19 15:08:28 UTC
README
Introduction
VamanAI Sentiment proviced an exessive, fluent ready to use laravel package to perform Text or Sentiment analysis on text.
Pre-requisites
You should have a valid account on VamanAI.com. After creating a free account you need to generate your API token which will be used in the package for user identifications/roles. You can generate your free API token) from here.
You also need following packages if not already installed-
"guzzlehttp/guzzle": "^6.3",
"symfony/psr-http-message-bridge": "0.2"
Installation
composer require vamanai/sentiment
Basic Usage
use Sentiment\classes\Vaman;
Sample call
Vaman::sentiment('I love you');
Sample output
{"text":"I love you","sentiment":"0.8943807601928711"}
License
VamanAI Sentiment is open-source software licensed under the MIT license