vamanai/sentiment

Laravel machine learning based Text Sentiment Analysis package from VamanAI.com

dev-master 2019-10-19 04:38 UTC

This package is auto-updated.

Last update: 2024-05-19 15:08:28 UTC


README

CircleCI License Total Downloads

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