- 2
I need help
3 Answers
+ 2
What's the question?
+ 1
Just like you need to be specific about your instructions for the programs you write, please also be specific about your question. As much as a lot of us would love a superpower, we are still mere humans that do not have the ability to mind read.
0
Can any one correct this code??
sentences = sent_tokenize(text)
sentenceValue = dict()
  Â
for sentence in sentences:
    for word, freq in freqTable.items():
        if word in sentence.lower():
            if sentence in sentenceValue:
                sentenceValue[sentence] += freq
            else:
                sentenceValue[sentence] = freq
  Â
  Â
  Â
sumValues = 0
for sentence in sentenceValue:
    sumValues += sentenceValue[sentence]



