From 94269b033c0d013b23e8ff65ca5b9fc6a7a6d739 Mon Sep 17 00:00:00 2001 From: janpreet Date: Sun, 12 Jun 2016 01:30:38 +0530 Subject: [PATCH] A comment has been added to the class --- rake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake.py b/rake.py index b1eaa24..19376be 100644 --- a/rake.py +++ b/rake.py @@ -133,7 +133,7 @@ def run(self, text): keyword_candidates = generate_candidate_keyword_scores(phrase_list, word_scores) - sorted_keywords = sorted(keyword_candidates.iteritems(), key=operator.itemgetter(1), reverse=True) + sorted_keywords = sorted(keyword_candidates.iteritems(), key=operator.itemgetter(1), reverse=True) #for python3 replace "iteritems" with "items" return sorted_keywords