Esempio n. 1
0
        private AnalysisInformation GetAnalysisInformation(string focusKeyword)
        {
            var information = new AnalysisInformation {
                Alias = "keywordanalyzer_top_words"
            };

            if (Document != null)
            {
                var topwords = _wordOccurenceHelper.GetKeywords(Document).OrderByDescending(x => x.Value).Take(10);

                information.Tokens.Add(focusKeyword);
                foreach (var wordOccurence in topwords)
                {
                    information.Tokens.Add(wordOccurence.Key);
                    information.Tokens.Add(wordOccurence.Value.ToString());
                }
            }
            return(information);
        }