@@ -33,7 +33,7 @@ If you don't use Laravel then you can find
3333 - Easily translate text for a global audience.
3434 - Spam Content Detection: Identify and filter out spam content effectively.
3535 - Contact Information Extraction: Extract phone numbers and email addresses from non-standard formats for streamlined communication.
36- - Generate concise summaries for improved content consumption.
36+ - Generate concise summaries and unique keywords/tags for improved content consumption.
3737 - Boost SEO efforts by automatically generating META tags based on content.
3838* ** HR Tech**
3939 - Generate complex job descriptions effortlessly, saving time in the hiring process.
@@ -89,7 +89,7 @@ and the process of checking the results, especially if you process bigger batche
8989Typical use case require these steps:
9090
91911 . Dispatch one of the available AI processing methods (this will return job processing status URL)
92- 2 . Run ` pollJobStatusAndFetchResults ($statusUrl)` method which operates in polling mode, sending underneath
92+ 2 . Run ` fetchResults ($statusUrl)` method which operates in polling mode, sending underneath
9393 requests every 10 seconds for 180 seconds (these values [ can be customized] ( #optional-custom-configuration ) ).
94943 . ` SharpApiJob ` object will be returned.
95954 . For a job finished with ` success ` return status you can obtain the results with one
@@ -137,7 +137,7 @@ class SharpTest extends Controller
137137 Call: 1800-394-7486 or our Singapore office +65 8888 8888'
138138 );
139139
140- $result = $this->sharpApiService->pollJobStatusAndFetchResults ($statusUrl);
140+ $result = $this->sharpApiService->fetchResults ($statusUrl);
141141
142142 dd($result->getResultJson());
143143 /* returned:
@@ -173,7 +173,7 @@ try {
173173}
174174
175175// Step 2: request to check job status in polling mode and wait for the result
176- $jobResult = \SharpApiService::pollJobStatusAndFetchResults ($statusUrl);
176+ $jobResult = \SharpApiService::fetchResults ($statusUrl);
177177
178178// Step 3: get results of dispatched API job, f.e. this returns job result as a prettied JSON
179179$jobResultJson = $jobResult->getResultJson();
@@ -373,6 +373,14 @@ or f.e. if you want to detect emails in places where they're not supposed to be.
373373$statusUrl = \SharpApiService::detectEmails($text);
374374```
375375
376+ #### Generate Keywords/Tags
377+
378+ Generates a list of unique keywords/tags based on the provided content.
379+
380+ ``` php
381+ $statusUrl = \SharpApiService::generateKeywords($text, 'English');
382+ ```
383+
376384#### Summarize Text
377385
378386Generates a summarized version of the provided content. Perfect for generating
@@ -382,6 +390,7 @@ marketing introductions of longer texts.
382390$statusUrl = \SharpApiService::summarizeText($text, 'English');
383391```
384392
393+
385394### SEO
386395
387396#### Generate SEO Tags
0 commit comments