def testStopwords(self): SW = Stopwords() en_words = SW.stopwordsForLanguage('en') for w in en_words: self.assertEqual(type(w), unicode) de_words = SW.stopwordsForLanguage('de') for w in de_words: self.assertEqual(type(w), unicode) self.assertEqual(len(SW.stopwordsForLanguage('xx')), 0)
def testStopwords(self): SW = Stopwords() en_words = SW.stopwordsForLanguage('en') for w in en_words: self.assertEqual(type(w), unicode) de_words = SW.stopwordsForLanguage('de') for w in de_words: self.assertEqual(type(w), unicode) self.assertEqual(len(SW.stopwordsForLanguage('xx')), 0)
def testStopwordReader(self): SW = Stopwords() for lang in SW.availableLanguages(): words = SW.stopwordsForLanguage(lang)
def testStopwordReader(self): SW = Stopwords() for lang in SW.availableLanguages(): words = SW.stopwordsForLanguage(lang)