Skip to content

Commit fe7c467

Browse files
author
Julien Salinas
committed
Support summarization size.
1 parent 3af8b23 commit fe7c467

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nlpcloud/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,10 @@ def sentiment(self, text):
421421

422422
return r.json()
423423

424-
def summarization(self, text):
424+
def summarization(self, text, size=None):
425425
payload = {
426-
"text": text
426+
"text": text,
427+
"size": size
427428
}
428429

429430
r = requests.post(

setup.py

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

33
setup(
44
name='nlpcloud',
5-
version='1.0.33',
5+
version='1.0.34',
66
description='Python client for the NLP Cloud API',
77
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, 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'],

0 commit comments

Comments
 (0)