Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Algorithm::NGram 0.9

    Download button

    No screenshots available
    Downloads: 119  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mischa Spiegelmock | More programs
    Perl Artistic License / FREE
    September 23rd, 2011, 22:52 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Algorithm::NGram description

    Analyzing token sequences with n-grams

    Algorithm::NGram is a Perl module for analyzing token sequences with n-grams. You can use it to parse a block of text, or feed in your own tokens. It can generate new sequences of tokens from what has been fed in.

    SYNPOSIS

     use Algorithm::NGram;
     my $ng = Algorithm::NGram->new(ngram_width => 3); # use trigrams

     # feed in text
     $ng->add_text($text1); # analyze $text1
     $ng->add_text($text2); # analyze $text2

     # feed in arbitrary sequence of tokens
     $ng->add_start_token;
     $ng->add_tokens(qw/token1 token2 token3/);
     $ng->add_end_token;

     my $output = $ng->generate_text;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    token sequences | sequences analyzer | Perl module | Perl | n-grams | token

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM