Text::NSP::Measures::3D

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

Text::NSP::Measures::3D Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Text::NSP::Measures::3D Team
  • Publisher web site:
  • http://search.cpan.org/~tpederse/Text-NSP-1.01/lib/Text/NSP/Measures/3D.pm

Text::NSP::Measures::3D Tags


Text::NSP::Measures::3D Description

Text::NSP::Measures::3D is a Perl module that provides basic framework for building measure of association for trigrams. 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 Related Software