Пример #1
0
        public void CarregarInformacoesTopico()
        {
            var matches = Regex.Matches(_strHtml, TopicoPattern.ObterPatternWords(), RegexOptions.Compiled);

            QtdPalavras = matches.Count;

            PalavraPrincipals = matches.GroupBy(x => x.Value).Select(grp =>
                                                                     new PalavraPrincipal(grp.Key, grp.Count())).OrderByDescending(p => p.Qtd).Take(10).ToList();
        }
Пример #2
0
 private void RemoverNumeros()
 {
     _strHtml = Regex.Replace(_strHtml, TopicoPattern.ObterPatternNumerico(), "", RegexOptions.Compiled);
 }
Пример #3
0
 private void RemoverConteudoTags()
 {
     _strHtml = Regex.Replace(_strHtml, TopicoPattern.ObterPatternConteudo(), " ", RegexOptions.Compiled);
 }
Пример #4
0
 private void RemoverPreposicoes()
 {
     _strHtml = Regex.Replace(_strHtml, TopicoPattern.ObterPatternPreposicoes(), " ", RegexOptions.Compiled | RegexOptions.IgnoreCase);
 }