public SentimentTrainingController( ILogger <SentimentTrainingController> logger, IDocumentStorage storage, ILexiconLoader lexiconLoader, IServiceProvider provider) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.storage = storage ?? throw new ArgumentNullException(nameof(storage)); this.lexiconLoader = lexiconLoader ?? throw new ArgumentNullException(nameof(lexiconLoader)); this.provider = provider ?? throw new ArgumentNullException(nameof(provider)); }
public SentimentController(ILoggerFactory factory, ITestingClient client, ILexiconLoader lexiconLoader, IDocumentConverter documentConverter, IMemoryCache cache) : base(factory) { this.client = client ?? throw new ArgumentNullException(nameof(client)); this.lexiconLoader = lexiconLoader ?? throw new ArgumentNullException(nameof(lexiconLoader)); this.documentConverter = documentConverter; this.cache = cache; logger = factory.CreateLogger <SentimentController>(); client.TrackArff = false; client.UseBuiltInSentiment = true; // add limit of concurrent processing client.Init(); }