public NMeCabMorphAnalyzer(NMeCabSetting setting) { if (string.IsNullOrEmpty(setting.DicDir)) { throw new ArgumentException("dicDirが正しく設定されていません"); } DicDir = setting.DicDir; _tagger = MeCabIpaDicTagger.Create(DicDir); }
public static MorphAnalysisSetting Create(MorphAnalyzerOption option = MorphAnalyzerOption.NMeCab, NMeCabSetting nMeCabSetting = default, HttpMeCabSetting httpMeCabSetting = default) { return(new MorphAnalysisSetting { _option = option, _nMeCabSetting = nMeCabSetting, _httpMeCabSetting = httpMeCabSetting, }); }