Skip to content

Commit

Permalink
Fix bug with average in compute_score
Browse files Browse the repository at this point in the history
  • Loading branch information
vgel committed Aug 3, 2013
1 parent 5490de3 commit 7849666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion summarize.py
Expand Up @@ -38,7 +38,7 @@ def compute_score(sent, sents):
UPPER_BOUND)"""
if not len(sent):
return 0
return sum( compare_sents_bounded(sent, sent1) for sent1 in sents ) / float(len(sent))
return sum( compare_sents_bounded(sent, sent1) for sent1 in sents ) / float(len(sents))

def summarize_block(block):
"""Return the sentence that best summarizes block"""
Expand Down

0 comments on commit 7849666

Please sign in to comment.