ngrams - Compute the ngram frequencies and produce tables to the stdout.
ngram [--version] [--help] [--n=3] [--type=TYPE] [--orderby=ORD] [--onlyfirst=N] [input files]
This script produces n-grams tables of the input files to the standard ouput.
Options: =over 4
Prints only the first NUMBER n-grams for each n. See Text::Ngrams module.
Limit the total number of distinct n-grams (for efficiency reasons, the counts may not be correct at the end).
Prints version.
Prints help.
N-gram size, produces 3-grams by default.
The n-gram order. See Text::Ngrams module.
Type of n-grams produces. See Text::Ngrams module.
Text::Ngrams, Getopt::Long
Text::Statistics
N-gram analysis for various kinds of n-grams (character, words, bytes, and user-defined). Based on Text::Ngrams module.
Text::Ngrams module.
Copyright 2003 Vlado Keselj http://www.cs.dal.ca/~vlado
This module is provided "as is" without expressed or implied warranty. This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The latest version can be found at http://www.cs.dal.ca/~vlado/srcperl/.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Text::Ngrams, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Ngrams
CPAN shell
perl -MCPAN -e shell install Text::Ngrams
For more information on module installation, please visit the detailed CPAN module installation guide.