public PaperAnalyzerEnvironment() { _morphoAmbiguityResolverModel = CreateMorphoAmbiguityResolverModel(); var morphoModelConfig = CreateMorphoModelConfig(); _morphoModel = MorphoModelFactory.Create(morphoModelConfig); var config = CreatePosTaggerProcessorConfig(); _processor = new PosTaggerProcessor(config, _morphoModel, _morphoAmbiguityResolverModel); }
public SyntaxProcessor(SyntaxProcessorConfig config) { CheckConfig(config); _Words = new List <word_t>(DEFAULT_WORDSLIST_CAPACITY); _PosTaggerProcessor = new PosTaggerProcessor(config.PosTaggerProcessorConfig, config.MorphoModel, config.MorphoAmbiguityModel); switch (config.ModelType) { case SyntaxModelTypeEnum.No_Words: _SyntaxScriber = new SyntaxScriber_NoWords(config.ModelFilename, config.TemplateFilename); break; case SyntaxModelTypeEnum.Words: _SyntaxScriber = new SyntaxScriber_Words(config.ModelFilename, config.TemplateFilename); break; } ModelType = config.ModelType; }