ngrams

Perl module for flexible N-gram analysis of text

Install

All systems
curl cmd.cat/ngrams.sh
Debian Debian
apt-get install libtext-ngrams-perl
Ubuntu
apt-get install libtext-ngrams-perl
image/svg+xml Kali Linux
apt-get install libtext-ngrams-perl
Windows (WSL2)
sudo apt-get update sudo apt-get install libtext-ngrams-perl
Raspbian
apt-get install libtext-ngrams-perl

libtext-ngrams-perl

Perl module for flexible N-gram analysis of text

Text::Ngrams is a module for flexible N-gram analysis of text. It supports character n-grams, word n-grams, and many more types of n-grams. It allows a user to manually feed a sequence of tokens, has automatic recognition and feed of tokens, and the way they are combined in an n-gram. It can also be used from the command line through the script ngrams.pl provided with the package.