def test_sentences_rating(self):
        document = build_document([
            "a c e g",
            "a b c d e f g",
            "b d f",
        ])
        summarizer = TextRankSummarizer()
        summarizer.stop_words = ["I", "am", "and", "that"]

        ratings = summarizer.rate_sentences(document)
        self.assertEqual(len(ratings), 3)
        self.assertTrue(ratings[document.sentences[0]] > ratings[document.sentences[1]])
        self.assertTrue(ratings[document.sentences[0]] > ratings[document.sentences[2]])
dataset/ETHPy150Open miso-belica/sumy/tests/test_summarizers/test_text_rank.py/TestTextRank.test_sentences_rating/swapped operands of `>`