Lingua::EN::Bigram

Calculate significant two-word phrases based on frequency and/or T-Score
Download

Lingua::EN::Bigram Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Eric Lease Morgan
  • Publisher web site:
  • http://search.cpan.org/~emorgan/

Lingua::EN::Bigram Tags


Lingua::EN::Bigram Description

Calculate significant two-word phrases based on frequency and/or T-Score Lingua::EN::Bigram is a Perl module designed to:1) pull out all of the two-word phrases (collocations or "bigrams") in a given text;2) list these phrases according to thier frequency and/or T-Score.Using this module is it possible to create list of the most common two-word phrases in a text as well as order them by their probable occurance, thus implying significance.SYNOPSIS use Lingua::EN::Bigram; $bigram = Lingua::EN::Bigram->new; $bigram->text( 'All men by nature desire to know. An indication of this...' ); $tscore = $bigram->tscore; foreach ( sort { $$tscore{ $b } $$tscore{ $a } } keys %$tscore ) { print "$$tscore{ $_ }\t" . "$_\n"; } Requirements: · Perl


Lingua::EN::Bigram Related Software