public void Dispose()
 {
     Combiner = null;
     Changer  = null;
     Tagger?.Dispose();
     Tagger = null;
 }
        public TextStyleChanger()
        {
            try
            {
                var dir = Path.GetDirectoryName(GetType().Assembly.Location);
                Tagger = Tagger <WNode> .Create(() => new WNode(), Path.Combine(dir, "UniDic-CWJ"));

                Changer  = new LanguageStyleChanger(Tagger);
                Combiner = new TokenCombiner <WNode>(n => n.Surface, n => n.RLength != n.Length);
            }
            catch (Exception)
            {
                Tagger?.Dispose();
                throw;
            }
        }