def test_removeStopwords_4(self): sent = "finally".split() self.assertEqual(textprocessing._removeStopwords(sent), ["finally"])
def test_removeStopwords_3(self): from nltk.corpus import stopwords sent = stopwords.words("english") self.assertEqual(textprocessing._removeStopwords(sent), [])
def test_removeStopwords_1(self): sent = "and then there were none".split() self.assertEqual(textprocessing._removeStopwords(sent), ["none"])
def test_removeStopwords_2(self): sent = "no stopwords here".split() self.assertEqual(textprocessing._removeStopwords(sent), ["stopwords"])
def test_removeStopwords_2(self): sent = 'no stopwords here'.split() self.assertEqual(textprocessing._removeStopwords(sent), ['stopwords'])