removed method count_keywords
This commit is contained in:
parent
40ab78f5b2
commit
6bbd125c05
|
@ -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
|
Loading…
Reference in New Issue