def TaibaCustomSetting(self, usr_dict): with open(usr_dict, 'r', encoding='utf-8') as dic: for word in dic: Taiba.add_word(word.strip('\n'))