def generate_summary(self, sents, sentenceScores, threshold) -> str:
    summary = ' '.join([sent.text.strip() for sent in sents if ((sent.lower_[:15] in sentenceScores) and (sentenceScores[sent.lower_[:15]] <= threshold))])
    return summary
def generate_summary(self, sents, sentenceScores, threshold) -> str:
    summary = ' '.join([sent.text.strip() for sent in sents if ((sent.lower_[:15] in sentenceScores) and (sentenceScores[sent.lower_[:15]] <= threshold))])
    return summary