Skip to content

Commit

Permalink
top 4 sent
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsanqadeer10 committed Jun 12, 2024
1 parent 4322c77 commit ccd6101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion summarization-submission/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def generate_summary(text):
ranked_sentence = sorted(((scores[i],s) for i,s in enumerate(sentences)), reverse=True) # Rank sentences
# Pick top 2 sentences for summary
ranked_sentence_length = len(ranked_sentence)
for i in range(2):
for i in range(4):
if i < ranked_sentence_length:
summarize_text.append(ranked_sentence[i][1])

Expand Down

0 comments on commit ccd6101

Please sign in to comment.