DEV Community


Discussion on: Build a quick Summarizer with Python and NLTK

gauranshbhutani profile image
Gauransh Bhutani

Hi, I am still facing the same error index out of me on this

Thread Thread
kavyakumar profile image

The code should be like this..
for sentence in sentences:
for wordValue in freqTable:
if wordValue in sentence.lower():
if sentence in sentenceValue:
sentenceValue[sentence] += freqTable[wordValue]
sentenceValue[sentence] = freqTable[wordValue]

Forem Open with the Forem app