#NEWLINE# def _rate_sentence( self , sentence , significant_words ) : #NEWLINE# #INDENT# words = map ( self . stem_word , sentence . words ) #NEWLINE# return sum ( ( ( sentence in significant_words ) for w in words ) )