Skip to content

Commit

Permalink
Decomission the lib versions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
juliensalinas committed Mar 12, 2024
1 parent c02b6d5 commit 301554e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,6 @@ echo json_encode($client->langdetection('<Text to analyze>'));

The above command returns an object.

### Library Versions Endpoint

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).

```php
echo json_encode($client->libVersions());
```

The above command returns an object.

### Paraphrasing Endpoint

Call the `paraphrasing()` method and pass the text you want to paraphrase.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nlpcloud/nlpcloud-client",
"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",
"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",
"homepage": "http://github.com/nlpcloud/nlpcloud-php",
"license": "MIT",
"keywords": [
Expand Down
16 changes: 0 additions & 16 deletions src/NLPCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,22 +339,6 @@ public function langdetection($text)
return $response->body;
}

public function libVersions()
{
$response = \Httpful\Request::get($this->rootURL . '/' . 'versions')
->expectsJson()
->sendsJson()
->addHeaders($this->headers)
->send();


if ($response->code >= 400) {
throw new \Exception($response->code . ': ' . $response->body->detail);
}

return $response->body;
}

public function paraphrasing($text)
{
$payload = array(
Expand Down

0 comments on commit 301554e

Please sign in to comment.