Esempio n. 1
0
        public IEnumerable <string> Post([FromBody] PostValue value)
        {
            //Rake.Rake rake = new Rake.Rake("stopwords.txt");
            Rake.Rake rake = new Rake.Rake();

            var teste = rake.Run(value.Value);

            return(teste.Where((s, d) => s.Value > 1).Select((s, d) => s.Key));
        }
Esempio n. 2
0
 public RakeExtractor(int maxWordsLength)
 {
     _rake = new RakeExtraction(LoadStopWords("SmartStoplist.txt"), 2, maxWordsLength);
 }