bidhan/aimlkit

AI/ML Integration Kit for Laravel

1.0.1 2024-05-15 10:10 UTC

This package is auto-updated.

Last update: 2024-09-15 10:58:54 UTC


README

AI/ML Integration Kit for Laravel

GitHub version

REQUIREMENTS

  • PHP >= 8.2
  • Python >= 3 (with libraries: numpy, pandas, transformers, torch)

🚀 Installation

To install the package, follow these steps:

  1. 📦 Install the package using Composer:

    composer require bidhan/aimlkit:dev-master
  2. ⚙️ Publish the configuration file:

    php artisan vendor:publish --provider="Bidhan\AiMlKit\AiMlKitServiceProvider" --tag=config
  3. 🐍 Set up a Python virtual environment:

    python3 -m venv myenv
    source myenv/bin/activate
  4. 🔧 Set the Python executable path:

    Don't forget to add the Python path to your aimlkit.php configuration:

    PY_EXECUTABLE_PATH="YOUR/PYTHON/PATH"

Note: To copy the commands, you can click the clipboard icon next to each code block if you're viewing this on a platform that supports it, like GitHub.

📖 Usage

Here is an example of how to use the BidhanAIMLKIT to get sentiments:

use Bidhan\AiMlKit\BidhanAIMLKIT;

$aimlkit = new BidhanAIMLKIT();
$sentiment = $aimlkit->getSentiments("ANY_STRING...");
print_r($sentiment);

👤 Authors

💡 PS*

Right now it is in the Development Phase and you are free to contribute 🙂

If you have any queries regarding this issue, feel free to reach out.