def load_stopwords(self, path):
if path:<EOL><INDENT>with open(path) as f:<EOL><INDENT>self.stopwords = set(f.read().splitlines())<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.stopwords = set(<EOL>pkgutil<EOL>.get_data('<STR_LIT>', '<STR_LIT>')<EOL>.decode('<STR_LIT:utf8>')<EOL>.splitlines()<EOL>)<EOL><DEDENT>
Load a set of stopwords.

Args:
    path (str): The stopwords file path.