
Text::WordGrams - Calculates statistics on word ngrams.

Version 0.02

use Text::WordGrams;
my $data = word_grams( $text );
my $data = word_grams_from_file( $file1, $file2 );

Returns a reference to an hash table with word ngrams counts for a specified string. Options are passed as a hash reference as first argument if needed.
Options include:
Set this option to ignore text case;
Set this option to the n-gram size you want. Notice that the value should be greater or equal to two. Also, keep in mind that the bigger size you ask for, the larger the hash will become. Future releases might include a DB File version for less memory consuption.
Supports the same options of word_grams function, but receives a list of file names instead of a string.

Alberto Simões, <ambs@cpan.org>

Please report any bugs or feature requests to bug-text-wordgrams@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-WordGrams. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

Copyright 2005 Alberto Simões, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.