Skip to content

Commit 9911259

Browse files
author
Julien Salinas
committed
Remove article generation.
1 parent 8b87b44 commit 9911259

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is the Python client for the [NLP Cloud](https://nlpcloud.io) API. See the [documentation](https://docs.nlpcloud.io) for more details.
44

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, image generation, blog post generation, source code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, 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, image generation, source code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.
66

77
You can either use the NLP Cloud pre-trained models, fine-tune your own models, or deploy your own models.
88

@@ -159,16 +159,6 @@ client.asr("Your url")
159159

160160
The above command returns a JSON object.
161161

162-
### Blog Post Generation Endpoint
163-
164-
Call the `article_generation()` method and pass the title of your blog post:
165-
166-
```python
167-
client.article_generation("<Your title>")
168-
```
169-
170-
The above command returns a JSON object.
171-
172162
### Chatbot Endpoint
173163

174164
Call the `chatbot()` method and pass your input. As an option, you can also pass a context and conversation history that is a list of dictionnaries. Each dictionnary is made of an `input` and a `response` from the chatbot.

nlpcloud/__init__.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,6 @@ def ad_generation(self, keywords):
4646

4747
return r.json()
4848

49-
def article_generation(self, title):
50-
payload = {
51-
"title": title
52-
}
53-
54-
r = requests.post(
55-
"{}/{}".format(self.root_url, "article-generation"), json=payload, headers=self.headers)
56-
57-
try:
58-
r.raise_for_status()
59-
except HTTPError as err:
60-
raise HTTPError(str(err) + ": " + str(r.text))
61-
62-
return r.json()
63-
6449
def asr(self, url=None, encoded_file=None, input_language=None):
6550
payload = {
6651
"url": url,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name='nlpcloud',
55
version='1.0.41',
66
description='Python client for the NLP Cloud API',
7-
long_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, blog post generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, speech synthesis, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.\n\nThis is the Python client for the API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io\n\nGithub: https://github.com/nlpcloud/nlpcloud-python",
7+
long_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, speech synthesis, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.\n\nThis is the Python client for the API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io\n\nGithub: https://github.com/nlpcloud/nlpcloud-python",
88
packages=['nlpcloud'],
99
author='Julien Salinas',
1010
author_email='[email protected]',

0 commit comments

Comments
 (0)