<p>Are you really using <code>"some paragraph"</code> as an input? If so, I find it odd that your script isn't throwing a <code>ZeroDivisionError</code>. The gensim summarize is based on <a href="https://arxiv.org/pdf/1602.03606.pdf" rel="nofollow noreferrer">TextRank</a>. As per the <a href="https://radimrehurek.com/gensim/summarization/summariser.html" rel="nofollow noreferrer">docs</a>:</p>

<p>"The input should be a string, and must be longer than INPUT_MIN_LENGTH sentences for the summary to make sense. The text will be split into sentences using the split_sentences method in the summarization.texcleaner module. Note that newlines divide sentences."</p>

<p>With this in mind, have a look at <a href="https://github.com/summanlp/gensim/blob/develop/gensim/summarization/summarizer.py#L17" rel="nofollow noreferrer">this</a>.</p>
Text Summarization with Gensim with short paragraph
<p>I am new in NLP. I am trying to extract the summary of the paragraphs using Gensim in python. </p>

<p>I am facing a problem with a short paragraph, it is giving me a warning as given below and doesn't give me a summary of the short paragraph.</p>

<p>Here is my code in Python:</p>

<pre><code> import logging
 logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
 from gensim.summarization import summarize

text = "short paragraph"
print ('Summary:')
print (summarize(text))
</code></pre>

<p>It is giving me warning as follows:</p>

<pre><code>2018-02-01 17:31:47,247 : WARNING : Input text is expected to have at least 10 sentences.
2018-02-01 17:31:47,253 : INFO : adding document #0 to Dictionary(0 unique tokens: [])
2018-02-01 17:31:47,258 : INFO : built Dictionary(52 unique tokens: ['clearli', 'adult', 'chang', 'member', 'visit']...) from 4 documents (total 70 corpus positions)
2018-02-01 17:31:47,262 : WARNING : Input corpus is expected to have at least 10 documents.
2018-02-01 17:31:47,285 : WARNING : Couldn't get relevant sentences.
</code></pre>

<p>The output is(Printing only summary label not the actual summary of the short paragraph):</p>

<pre><code>Summary:
</code></pre>

<p>Am I missing something? Is there any other library for the same.</p>