Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion textteaser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def getSentenceLengthScore(self, sentence):

# Jagadeesh, J., Pingali, P., & Varma, V. (2005). Sentence Extraction Based Single Document Summarization. International Institute of Information Technology, Hyderabad, India, 5.
def getSentencePositionScore(self, i, sentenceCount):
normalized = i / (sentenceCount * 1.0)
normalized = (i + 1) / (sentenceCount * 1.0)

if normalized > 0 and normalized <= 0.1:
return 0.17
Expand Down