public PosTaggerModelBuilder(string templateFilename, LanguageTypeEnum languageType, UrlDetectorConfig urlDetectorConfig) { templateFilename.ThrowIfNullOrWhiteSpace("templateFilename"); urlDetectorConfig.ThrowIfNull("urlDetectorConfig"); _posTaggerScriber = PosTaggerScriber.Create4ModelBuilder(templateFilename); _posTaggerInputTypeProcessor = CreatePosTaggerInputTypeProcessor(languageType); _urlDetector = new UrlDetector(urlDetectorConfig); _words = new List <Word>(); }
public PosTaggerProcessor(PosTaggerProcessorConfig config, IMorphoModel morphoModel, MorphoAmbiguityResolverModel morphoAmbiguityModel) { CheckConfig(config, morphoModel, morphoAmbiguityModel); _tokenizer = new Tokenizer(config.TokenizerConfig); _words = new List <Word>(DEFAULT_WORDSLIST_CAPACITY); _posTaggerScriber = PosTaggerScriber.Create(config.ModelFilename, config.TemplateFilename); _posTaggerPreMerging = new PosTaggerPreMerging(config.Model); _posTaggerMorphoAnalyzer = new PosTaggerMorphoAnalyzer(morphoModel, morphoAmbiguityModel); _processSentCallback1Delegate = new Tokenizer.ProcessSentCallbackDelegate(ProcessSentCallback1); _processSentCallback2Delegate = new Tokenizer.ProcessSentCallbackDelegate(ProcessSentCallback2); }
public static PosTaggerScriber Create(string modelFilename, string templateFilename) { var _PosTaggerCRFSuiteConverter = new PosTaggerScriber(modelFilename, templateFilename); return(_PosTaggerCRFSuiteConverter); }
public static PosTaggerScriber Create4ModelBuilder(string templateFilename) { var _PosTaggerCRFSuiteConverter = new PosTaggerScriber(templateFilename); return(_PosTaggerCRFSuiteConverter); }