Пример #1
0
        public Sentiment(SentimentConfiguration configuration, ILanguageProcessor languageProcessor)
        {
            _configuration     = configuration ?? throw new ArgumentNullException(nameof(configuration));
            _languageProcessor = languageProcessor ?? throw new ArgumentNullException(nameof(languageProcessor));

            AddLanguage(configuration.DefaultLanguage);
        }
Пример #2
0
 public Sentiment(SentimentConfiguration configuration) : this(configuration, new LanguageProcessor())
 {
 }