private static void CheckConfig(NerModelBuilderConfig config)
        {
            config.ThrowIfNull("config");
            #region [.learner. not used.]

            /*
             * config.ModelFilename    .ThrowIfNullOrWhiteSpace( "ModelFilename" );
             */
            #endregion
            config.TemplateFilename.ThrowIfNullOrWhiteSpace("TemplateFilename");
            config.TokenizerConfig4NerModelBuilder.ThrowIfNull("TokenizerConfig4NerModelBuilder");
        }
        public NerModelBuilder(NerModelBuilderConfig config)
        {
            CheckConfig(config);

            _NerScriber = NerScriber.Create4ModelBuilder(config.TemplateFilename);
            #region [.learner. not used.]

            /*_NerCRFSuiteModelBuilderAdapter = new NerCRFSuiteModelBuilderAdapter(
             *  config.ModelFilename,
             *  config.TemplateFilename,
             *  config.Algorithm
             * );*/
            #endregion
            _Tokenizer      = Tokenizer.Create4NerModelBuilder(config.TokenizerConfig4NerModelBuilder);
            _Words          = new List <buildmodel_word_t>();
            _Sb             = new StringBuilder();
            _IgnoreXmlError = config.IgnoreXmlError;
        }