Text::NSP::Measures::3D::MI

Text::NSP::Measures::3D::MI is a Perl module that provides error checks and framework to implement Loglieklihood and more.
Download

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

Advertisement

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

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


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

Text::NSP::Measures::3D::MI is a Perl module that provides error checks and framework to implement Loglieklihood and more. Text::NSP::Measures::3D::MI is a Perl module that provides error checks and framework to implement Loglieklihood, Total Mutual Information, Pointwise Mutual Information and Poisson Stirling Measure for trigrams.SYNOPSISBasic 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"; }This module is the base class for the Loglikelihood and the True Mutual Information measures. All these measure are similar. This module provides error checks specific for these measures, it also implements the computations that are common to these measures.Log-Likelihood measure is computed as Log-Likelihood = 2 * Total Mutual Informationtmi = Pointwise Mutual Informationpmi = log (n111/m111)Poisson Stirling Measureps = n111 * ( log(n111/m111) - 1)All these methods use the ratio of the observed values to expected values, for computations, and thus have common error checks, so they have been grouped togrther.Requirements:· Perl Requirements: · Perl


Text::NSP::Measures::3D::MI Related Software