def setUp(self): module_path = os.path.dirname(os.path.realpath(__file__)) self.module_path = module_path self.spec_list = DictionaryFeatureExtractor(language='english') self.custom_list = DictionaryFeatureExtractor(punctuation=',.:;()', stopwords=['Sam'])