Package perl-Text-NSP

Source package: perl-Text-NSP
Version: 1.31-alt1
Build time: Oct 12, 2015, 12:53 PM
in the task #151208
Category: Text tools
Report package bug
License: GPL
Summary: The Ngram Statistic Package allows a user to count sequences of words in large corpora of text, and measure their association
The Ngram Statistics Package (NSP) is a collection of perl modules
that aid in analyzing Ngrams in text files. We define an Ngram as a
sequence of 'n' tokens that occur within a window of at least 'n'
tokens in the text; what constitutes a "token" can be defined by the
user. is a stub that doesn't have any real functionality. It serves
as a top level module in the hierarchy and allows us to group the
Text::NSP::Count and Text::NSP::Measures modules.

The modules under Text::NSP::Measures implement measures of
association that are used to evaluate whether the co-occurrence of the
words in a Ngram is purely by chance or statistically significant.
These measures compute a numerical score for Ngrams. This score can be
used to decide whether or not there is enough evidence to reject the
null hypothesis (that the Ngram is not statistically significant) for
that Ngram.

To use one of the measures you can either use the program
provided under the utils directory, or write your own driver program.
Program takes as input a list of Ngrams with their
frequencies (in the format output by and runs a
user-selected statistical measure of association to compute the score
for each Ngram. The Ngrams, along with their scores, are output in
descending order of this score. For help on using utils/
please refer to its perldoc (perldoc utils/

If you are writing your own driver program, a basic usage example is
provided above under SYNOPSIS. For further clarification please refer
to the documentation of Text::NSP::Measures (perldoc
List of rpms provided by this srpm:
perl-Text-NSP (noarch)
Maintainer: Kirill Maslinsky
List of contributors:
Igor Vlasenko
Kirill Maslinsky
    1. perl-devel
    2. perl-podlators
Last changes:
Oct. 11, 2015 Igor Vlasenko 1.31-alt1
- automated CPAN update
Oct. 9, 2013 Igor Vlasenko 1.27-alt1
- automated CPAN update
Nov. 22, 2010 Igor Vlasenko 1.15-alt1.1
- repair after perl 5.12 upgrade using girar-nmu

Back to Top