public SendMessageCore(INotices noticeProxy) { _friendsBlackListManager = new FriendsBlackListManager(); _friendManager = new FriendManager(); _accountManager = new AccountManager(); _facebookMessageManager = new FacebookMessageManager(); _messageManager = new MessageManager(); _stopWordsManager = new StopWordsManager(); _notice = noticeProxy; }
/// <summary> /// Initializes a new instance of the <see cref="Pipeline"/> class. /// </summary> /// <param name="normalizerManager">The normalizer manager.</param> /// <param name="pOSTagger">The p os tagger.</param> /// <param name="sentenceDetector">The sentence detector.</param> /// <param name="stemmer">The stemmer.</param> /// <param name="stopWordsManager">The stop words manager.</param> /// <param name="tokenizer">The tokenizer.</param> /// <param name="featureExtractor">The feature extractor.</param> /// <param name="textSummarizer">The text summarizer.</param> /// <param name="entityFinder">The entity finder.</param> /// <exception cref="ArgumentNullException"> /// normalizerManager or pOSTagger or sentenceDetector or stemmer or stopWordsManager or /// tokenizer or featureExtractor or textSummarizer /// </exception> public Pipeline( INormalizerManager normalizerManager, IPOSTagger pOSTagger, ISentenceDetector sentenceDetector, IStemmer stemmer, IStopWordsManager stopWordsManager, ITokenizer tokenizer, IFeatureExtractor featureExtractor, ITextSummarizer textSummarizer, IEntityFinder entityFinder) { NormalizerManager = normalizerManager ?? throw new ArgumentNullException(nameof(normalizerManager)); POSTagger = pOSTagger ?? throw new ArgumentNullException(nameof(pOSTagger)); SentenceDetector = sentenceDetector ?? throw new ArgumentNullException(nameof(sentenceDetector)); Stemmer = stemmer ?? throw new ArgumentNullException(nameof(stemmer)); StopWordsManager = stopWordsManager ?? throw new ArgumentNullException(nameof(stopWordsManager)); Tokenizer = tokenizer ?? throw new ArgumentNullException(nameof(tokenizer)); FeatureExtractor = featureExtractor ?? throw new ArgumentNullException(nameof(featureExtractor)); TextSummarizer = textSummarizer ?? throw new ArgumentNullException(nameof(textSummarizer)); EntityFinder = entityFinder ?? throw new ArgumentNullException(nameof(entityFinder)); SetLanguage(Languages.English); }