Skip to content

Commit 301554e

Browse files
author
Julien Salinas
committed
Decomission the lib versions endpoint
1 parent c02b6d5 commit 301554e

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,6 @@ echo json_encode($client->langdetection('<Text to analyze>'));
303303

304304
The above command returns an object.
305305

306-
### Library Versions Endpoint
307-
308-
Call the `libVersions()` method to know the versions of the libraries used behind the hood with the model (for example the PyTorch, TensorFlow, and spaCy version used).
309-
310-
```php
311-
echo json_encode($client->libVersions());
312-
```
313-
314-
The above command returns an object.
315-
316306
### Paraphrasing Endpoint
317307

318308
Call the `paraphrasing()` method and pass the text you want to paraphrase.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"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, image generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, speech synthesis, 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, image generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, speech synthesis, 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.com. Documentation: https://docs.nlpcloud.com. Github: https://github.com/nlpcloud/nlpcloud-php",
44
"homepage": "http://github.com/nlpcloud/nlpcloud-php",
55
"license": "MIT",
66
"keywords": [

src/NLPCloud.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -339,22 +339,6 @@ public function langdetection($text)
339339
return $response->body;
340340
}
341341

342-
public function libVersions()
343-
{
344-
$response = \Httpful\Request::get($this->rootURL . '/' . 'versions')
345-
->expectsJson()
346-
->sendsJson()
347-
->addHeaders($this->headers)
348-
->send();
349-
350-
351-
if ($response->code >= 400) {
352-
throw new \Exception($response->code . ': ' . $response->body->detail);
353-
}
354-
355-
return $response->body;
356-
}
357-
358342
public function paraphrasing($text)
359343
{
360344
$payload = array(

0 commit comments

Comments
 (0)