INNER CODE UNIT · Python
_generate_candidate_keywords
vgrabovets/multi_rake · multi_rake/algorithm.py:131
def _generate_candidate_keywords(
self,
sentence_list,
stop_words,
max_words,
):
result = []
phrases = []
for sentence in sentence_list:
tmp = []
for word in sentence.split():
if word in stop_words:
if tmp:
phrases.append(' '.join(tmp))
tmp = []