Download the PHP package ahmedash95/sentimento without Composer
On this page you can find all versions of the php package ahmedash95/sentimento. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ahmedash95/sentimento
More information about ahmedash95/sentimento
Files in ahmedash95/sentimento
Package sentimento
Short Description A laravel package that provides sentiment analysis capabilities using OpenAI's GPT to easily analyze text-based data and gain insight into the underlying sentiment.
License MIT
Informations about the package sentimento
Sentimento
A laravel package that provides sentiment analysis capabilities using OpenAI's GPT to easily analyze text-based data and gain insight into the underlying sentiment.
Installation
-
First you need to install the package using composer
-
(Optional) Publish config file
- Add your OpenAI API key to your .env file
Now you are ready to use the package
Usage
OpenAI can comprehend multiple languages, and using it is as easy as invoking a function.
⚠️⚠️⚠️ When calling OpenAI to analyze text, there is a possibility that HTTP exceptions may occur if the request to OpenAI fails. This can happen due to a variety of reasons, such as network connectivity issues, server errors, or even rate limiting policies imposed by OpenAI. If the request to OpenAI fails, the package may not be able to properly analyze the sentiment of the given text and may result in unexpected errors or output. To handle this, it is important to catch and handle any potential HTTP exceptions that may occur
Or you can set the report_failures
option to false
in the config file to disable reporting failures
Testing
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
Credits
- Ahmed Ammar
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of sentimento with dependencies
spatie/laravel-package-tools Version ^1.14
guzzlehttp/guzzle Version ^7.5