@@ -33,7 +33,7 @@ If you don't use Laravel then you can find
33
33
- Easily translate text for a global audience.
34
34
- Spam Content Detection: Identify and filter out spam content effectively.
35
35
- 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.
37
37
- Boost SEO efforts by automatically generating META tags based on content.
38
38
* ** HR Tech**
39
39
- 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
89
89
Typical use case require these steps:
90
90
91
91
1 . 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
93
93
requests every 10 seconds for 180 seconds (these values [ can be customized] ( #optional-custom-configuration ) ).
94
94
3 . ` SharpApiJob ` object will be returned.
95
95
4 . For a job finished with ` success ` return status you can obtain the results with one
@@ -137,7 +137,7 @@ class SharpTest extends Controller
137
137
Call: 1800-394-7486 or our Singapore office +65 8888 8888'
138
138
);
139
139
140
- $result = $this->sharpApiService->pollJobStatusAndFetchResults ($statusUrl);
140
+ $result = $this->sharpApiService->fetchResults ($statusUrl);
141
141
142
142
dd($result->getResultJson());
143
143
/* returned:
@@ -173,7 +173,7 @@ try {
173
173
}
174
174
175
175
// 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);
177
177
178
178
// Step 3: get results of dispatched API job, f.e. this returns job result as a prettied JSON
179
179
$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.
373
373
$statusUrl = \SharpApiService::detectEmails($text);
374
374
```
375
375
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
+
376
384
#### Summarize Text
377
385
378
386
Generates a summarized version of the provided content. Perfect for generating
@@ -382,6 +390,7 @@ marketing introductions of longer texts.
382
390
$statusUrl = \SharpApiService::summarizeText($text, 'English');
383
391
```
384
392
393
+
385
394
### SEO
386
395
387
396
#### Generate SEO Tags
0 commit comments