Text::NSP::Measures::3D 1.01 review

Download
by rbytes.net on

Text::NSP::Measures::3D is a Perl module that provides basic framework for building measure of association for trigrams. This modu

License: Perl Artistic License
File size: 936K
Developer: Text::NSP::Measures::3D Team
0 stars award from rbytes.net

Text::NSP::Measures::3D is a Perl module that provides basic framework for building measure of association for trigrams.

This module can be used as a foundation for building 3-dimensional measures of association that can then be used by statistic.pl. In particular this module provides methods that give convenient access to 3-d (i.e., trigram) frequency counts as created by count.pl, as well as some degree of error handling that verifies the data.

Basic Usage

use Text::NSP::Measures::3D::MI::ll;

$ll_value = calculateStatistic( n111=>10,
n1pp=>40,
np1p=>45,
npp1=>42,
n11p=>20,
n1p1=>23,
np11=>21,
nppp=>100);

if( ($errorCode = getErrorCode()))
{
print STDERR $erroCode." - ".getErrorMessage()."n";
}
else
{
print getStatisticName."value for bigram is ".$ll_value."n";
}

The methods in this module retrieve observed trigram frequency counts and marginal totals, and also compute expected values. They also provide support for error checking of the output produced by count.pl. These methods are used in all the trigram (3d) measure modules provided in NSP. If you are writing your own 3d measure, you can use these methods as well.

Requirements:
Perl

Text::NSP::Measures::3D 1.01 keywords