コード例 #1
0
 def test_removeStopwords_4(self):
     sent = "finally".split()
     self.assertEqual(textprocessing._removeStopwords(sent), ["finally"])
コード例 #2
0
 def test_removeStopwords_3(self):
     from nltk.corpus import stopwords
     sent = stopwords.words("english")
     self.assertEqual(textprocessing._removeStopwords(sent), [])
コード例 #3
0
 def test_removeStopwords_1(self):
     sent = "and then there were none".split()
     self.assertEqual(textprocessing._removeStopwords(sent),
                      ["none"])
コード例 #4
0
 def test_removeStopwords_2(self):
     sent = "no stopwords here".split()
     self.assertEqual(textprocessing._removeStopwords(sent),
                      ["stopwords"])
コード例 #5
0
ファイル: test_textprocessing.py プロジェクト: skinn009/rnlp
 def test_removeStopwords_2(self):
     sent = 'no stopwords here'.split()
     self.assertEqual(textprocessing._removeStopwords(sent),
                      ['stopwords'])