removed method count_keywords

This commit is contained in:
Anne Lorenz 2018-09-26 10:21:47 +02:00
parent 40ab78f5b2
commit 6bbd125c05
1 changed files with 1 additions and 7 deletions

View File

@ -59,10 +59,4 @@ class FilterKeywords:
else:
dict_keywords[str(kword)] = dict_input[key]
return dict_keywords
def count_keywords(dict_keywords):
'''input: dict with article's keywords (key) and their count (value),
returns number of keywords that are found.
'''
return sum(dict_keywords.values())
return dict_keywords