Skip to content

Commit

Permalink
Fix piskvorky#805: Added check in summarizing text
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolgulati committed Sep 25, 2016
1 parent 0157ab8 commit d74dc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/summarization/summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def summarize_corpus(corpus, ratio=0.2):
_remove_unreachable_nodes(graph)

# If the number of nodes < 3, the function ends.
if len(graph.nodes) < 3:
if len(graph.nodes()) < 3:
logger.warning("Please add more sentences to the text. The number of reachable nodes is below 3")
return

Expand Down

0 comments on commit d74dc16

Please sign in to comment.