Hi, I believe there is a bug in sbs function at summarizer.py. In the for loop at line 73, the code loops through words in sentences but these if statements are outside of the loop:
if word in keywordList:
index = keywordList.index(word)
if index > -1:
score += topKeywords[index]['totalScore']
Therefore, the scores are only calculated for the last words of each sentence.
Hi, I believe there is a bug in
sbsfunction atsummarizer.py. In the for loop at line 73, the code loops through words in sentences but these if statements are outside of the loop:Therefore, the scores are only calculated for the last words of each sentence.