def __init__(self, dict_filepath=None): self.config = Util.load_config() self.dict_filepath = dict_filepath if not dict_filepath: self.dict_filepath = self.config['mecab']['dict_filepath'] self.tagger = MeCab.Tagger(f'-d {self.dict_filepath}')
def __init__(self): self.config = Util.load_config() self.mparser = MorphParser()