ianrothmann/ain-laravel-sdk
SDK for use with AIN Laravel.
5,207
| Install | |
|---|---|
composer require ianrothmann/ain-laravel-sdk |
|
| Latest Version: | 0.2.1 |
| PHP: | >=7.4 |
| License: | MIT |
| Last Updated: | Mar 29, 2024 |
| Links: | GitHub · Packagist |
Maintainer: ianrothmann
Ain Laravel SDK
Try it out with the Ain Facade. Proper documentation will follow soon. Here are a few tasks:
public function tldr()
{
$result=\Ain::TLdr()
->text($this->story)
->get();
dd($result);
}
public function summarize()
{
$result=\Ain::summarize()
->text($this->story)
->inFirstPerson()
->forTargetGradeLevel(2)
->force()
->get();
dd($result);
}
public function keywords()
{
$result=\Ain::extractKeywords()
->fromText($this->story)
->get();
dd($result);
}
public function themes()
{
$result=\Ain::extractThemes()
->fromText($this->story)
->forContext('A person tells a story')
->get();
dd($result);
}
public function sentiment()
{
$result=\Ain::classifySentiment()
->forSentences(['I like my dog','I dont like winter'])
->get();
dd($result);
}
public function grammar()
{
$result=\Ain::languageCheck()
->text($this->spelling)
->get();
dd($result);
}
public function rewriter()
{
$result=\Ain::rewrite()
->text($this->story)
->withHighCreativity()
->get();
dd($result);
}
public function splitNames()
{
$result=\Ain::splitNames()
->forList(['Ian Rothmann','Hill, Peter'])
->get();
dd($result);
}
Related Packages
erirk/paypalpayment
laravel-paypalpayment is simple package help you process direct credit card paym...
0
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
628,058,007
9,707