You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This is the PHP client for the [NLP Cloud](https://nlpcloud.io) API. See the [documentation](https://docs.nlpcloud.io) for more details.
4
4
5
-
NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, dialogue summarization, paraphrasing, intent classification, product description and ad generation, chatbot, grammar and spelling correction, keywords and keyphrases extraction, text generation, question answering, machine translation, language detection, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.
5
+
NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, dialogue summarization, paraphrasing, intent classification, product description and ad generation, chatbot, grammar and spelling correction, keywords and keyphrases extraction, text generation, blog post generation, code generation, question answering, machine translation, language detection, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.
6
6
7
7
You can either use the NLP Cloud pre-trained models, fine-tune your own models, or deploy your own models.
8
8
@@ -137,7 +137,7 @@ use NLPCloud\NLPCloud;
137
137
$client = new \NLPCloud\NLPCloud('<model>','<yourtoken>', false, '<yourlanguagecode>');
138
138
```
139
139
140
-
### Product Description and Ad Generation
140
+
### Ad Generation And Product Description Endpoint
141
141
142
142
Call the `adGeneration()` method and pass a list of keywords you want to generate you product description or ad from.
Call the `articleGeneration()` method and pass the title of the blog post your want to generate:
153
+
154
+
```php
155
+
$client.articleGeneration("<Yourtitle>")
156
+
```
157
+
158
+
The above command returns a JSON object.
159
+
160
+
### Chatbot Endpoint
151
161
152
162
Call the `chatbot()` method and pass your input. As an option, you can also pass a conversation history that is an array of named arrays. Each named array is made of an `input` and a `response` from the chatbot.
153
163
@@ -171,6 +181,16 @@ $client->classification("<Your block of text>", ["label 1", "label 2", ...], Tru
171
181
172
182
The above command returns a JSON object.
173
183
184
+
### Code Generation Endpoint
185
+
186
+
Call the `codeGeneration()` method and pass the description of your program:
187
+
188
+
```php
189
+
$client.codeGeneration("<Yourinstruction>")
190
+
```
191
+
192
+
The above command returns a JSON object.
193
+
174
194
### Dependencies Endpoint
175
195
176
196
Call the `dependencies()` method and pass the text you want to perform part of speech tagging (POS) + arcs on.
Copy file name to clipboardExpand all lines: composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "nlpcloud/nlpcloud-client",
3
-
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling correction, keywords and keyphrases extraction, chatbot, product description and ad generation, intent classification, text generation, question answering, machine translation, language detection, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API. This is the PHP client for the API. More details here: https://nlpcloud.io. Documentation: https://docs.nlpcloud.io. Github: https://github.com/nlpcloud/nlpcloud-php",
3
+
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling correction, keywords and keyphrases extraction, chatbot, product description and ad generation, intent classification, text generation, blog post generation, code generation, question answering, machine translation, language detection, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API. This is the PHP client for the API. More details here: https://nlpcloud.io. Documentation: https://docs.nlpcloud.io. Github: https://github.com/nlpcloud/nlpcloud-php",
0 commit comments