Esempio n. 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);
        }
Esempio n. 2
0
 public Sentiment(SentimentConfiguration configuration) : this(configuration, new LanguageProcessor())
 {
 }