Skip to content

Indentation oversight in summarizer.py #16

@dainiussa

Description

@dainiussa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions