public KeywordExtractor(INlpServiceProvider nlpServices, string lang) { _stopWordFilter = nlpServices.GetStopWordFilter(lang); _wordStemmer = nlpServices.GetStemmer(lang); _filter = (word) => { return(!_stopWordFilter.IsStopWord(word)); }; _mapper = (word) => { return(_wordStemmer.Stem(word)); }; }
public TextRankSummarizer(INlpServiceProvider nlpServiceProvider) : base(nlpServiceProvider) { }
public TFIDFSummarizer(INlpServiceProvider nlpServiceProvider) : base(nlpServiceProvider) { }
public SummarizerBase(INlpServiceProvider nlpServiceProvider) { _nlpServiceProvider = nlpServiceProvider; }