예제 #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())
 {
 }