def nlp(self):
        if not self.is_downloaded or not self.is_parsed:
            print('You must `download()` and `parse()` an article '
                  'before calling `nlp()` on it!')
            raise ArticleException()

        text_keyws = list(nlp.keywords(self.text).keys())
        title_keyws = list(nlp.keywords(self.title).keys())
        keyws = list(set(title_keyws + text_keyws))
        self.set_keywords(keyws)

        max_sents = self.config.MAX_SUMMARY_SENT

        summary_sents = nlp.summarize(title=self.title, text=self.text, max_sents=max_sents)
        summary = '\n'.join(summary_sents)
        self.set_summary(summary)
Test to ensure that vars will be correctly handled
dataset/ETHPy150Open codelucas/newspaper/newspaper/article.py/Article.nlp--crossover with--dataset/ETHPy150Open timothycrosley/jiphy/test_jiphy.py/test_variables