def load_common(self, wlist):
self.com_dict = os.path.join(self.base_dir, '<STR_LIT>', '<STR_LIT>')<EOL>with open(self.com_dict) as words_file:<EOL><INDENT>data = words_file.read()<EOL><DEDENT>self.common_words = set(data.splitlines())<EOL>if wlist:<EOL><INDENT>new_words = '<STR_LIT>'<EOL>for wl in wlist:<EOL><INDENT>with open(wl) as f:<EOL><INDENT>new_words += f.read()<EOL><DEDENT><DEDENT>if new_words:<EOL><INDENT>new_dict = set(data.splitlines())<EOL>self.common_words.update(new_dict)<EOL><DEDENT><DEDENT>
Create the dictionary of common words.