HTML::WordTagRatio::Ratio

Default module for determining the ratio of words to tags in a range of tokens in an HTML document.
Download

HTML::WordTagRatio::Ratio Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jean Tavernier
  • Publisher web site:
  • http://search.cpan.org/~jtaverni/

HTML::WordTagRatio::Ratio Tags


HTML::WordTagRatio::Ratio Description

Default module for determining the ratio of words to tags in a range of tokens in an HTML document. HTML::WordTagRatio::Ratio is the default Perl module for determining the ratio of words to tags in a range of tokens in an HTML document.SYNOPSIS use HTML::WordTagRatio::Ratio; use HTML::Content::HTMLTokenizer; use HTML::Content::ContentExtractor; my $tokenizer = new HTML::Content::HTMLTokenizer('TAG','WORD'); open(HTML,"index.html"); my $doc = join("",); close(HTML); my ($word_count_arr_ref,$tag_count_arr_ref,$token_type_arr_ref,$token_hash_ref) = $tokenizer->Tokenize($doc); my $ratio = new HTML::WordTagRatio::Ratio(); my $value = $ratio->RangeValue(0, @$word_count_arr_ref, $word_count_arr_ref, $tag_count_arr_ref);HTML::WordTagRatio::Ratio and derived classes compute a ratio of Words to Tags for a given range. Ratio is the base class and merely returns the number of word tokens in the range. Requirements: · Perl


HTML::WordTagRatio::Ratio Related Software