public TextPreprocessor(ITokenizer tokenizer, IStopwords stopwords, INormalizer normalizer, IStemmer stemmer) { if (tokenizer == null) { throw new MLException("TextPreprocessor.ctor(tokenizer=null)"); } if (stopwords == null) { throw new MLException("TextPreprocessor.ctor(stopwords=null)"); } if (normalizer == null) { throw new MLException("TextPreprocessor.ctor(normalizer=null)"); } if (stemmer == null) { throw new MLException("TextPreprocessor.ctor(stemmer=null)"); } m_Tokenizer = tokenizer; m_Stopwords = stopwords; m_Normalizer = normalizer; m_Stemmer = stemmer; }
public Businesslogic(IStopwords dal) { _dal = dal; }