README for SGT package Last updated for version 2.01, Decemver 22, 2006
This document provides a general introduction to the SGT package.
This Perl module implements the Simple Good Touring (SGT) algorithm for smoothing of probabilistic values developed by William Gale and Geoffrey Sampson. The algorithm is described in the following article: http://l2r.cs.uiuc.edu/~danr/Teaching/CS598-05/Papers/Gale-Sampson-smoothgoodturing.pdf Basic usage: use Statistics::Smoothing::SGT; my $sgt = new SGT($frequencyClasses, $total); $sgt->calculateSGTValues(); $probabilities = $sgt->getProbabilities(); $newFrequencies = $sgt->getNewFrequencies(); $nBar = $sgt->getNBar();
Florian Doemges, florian@doemges.net Bjoern Wilmsmann, bjoern@wilmsmann.de
Homepage: http://www.topicalizer.com/bwilmsmann/wiki/index.php/SGT
Copyright (C) 2006, Florian Doemges and Bjoern Wilmsmann, Linguistics Department, Ruhr-University, Bochum Partially based on the SGT module (Copyright (C) 2004) by Andre Halama (halama@linguistics.rub.de) and Tibor Kiss (tibor@linguistics.rub.de), Linguistics Department, Ruhr-University, Bochum This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Note: a copy of the GNU General Public License is available on the web at http://www.gnu.org/licenses/gpl.txt and is included in this distribution as GPL.txt.
---
To install SGT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SGT
CPAN shell
perl -MCPAN -e shell install SGT
For more information on module installation, please visit the detailed CPAN module installation guide.