Example #1
0
        public MorphoAnalyzer(IMorphoModel model)
        {
            model.ThrowIfNull("model");

            _MorphoModel               = model;
            _WordFormMorphologies      = new List <WordFormMorphology_t>();
            _WordForms                 = new List <WordForm_t>();
            _UniqueWordFormsDictionary = new Dictionary <string, PartOfSpeechEnum>();
        }
Example #2
0
        public MorphoAnalyzer(IMorphoModel model)
        {
            model.ThrowIfNull("model");

            _morphoModel               = model;
            _wordFormMorphologies      = new List <WordFormMorphology>();
            _wordForms                 = new List <WordForm>();
            _uniqueWordFormsDictionary = new Dictionary <string, PartOfSpeechEnum>();
            Buffer4Upper               = new char[DEFAULT_BUFFER_4_UPPER_SIZE];
        }
Example #3
0
        private static void CheckConfig(PosTaggerProcessorConfig config, IMorphoModel morphoModel, MorphoAmbiguityResolverModel morphoAmbiguityModel)
        {
            morphoModel.ThrowIfNull("morphoModel");

            config.ThrowIfNull("config");
            config.Model.ThrowIfNull("Model");
            config.TokenizerConfig.ThrowIfNull("TokenizerConfig");
            config.ModelFilename.ThrowIfNullOrWhiteSpace("ModelFilename");
            config.TemplateFilename.ThrowIfNullOrWhiteSpace("TemplateFilename");

            morphoAmbiguityModel.ThrowIfNull("morphoAmbiguityModel");
        }